[memo] go get で can't load package github.com/jgrahamc/webwatch: package no buildable Go source files in と言われて

path/to/src/.go があるディレクトリに移動して go build;go install で対処すれば良いだけなのだが‥‥

[zunermuka ~]$ go get github.com/jgrahamc/webwatch
can't load package: package github.com/jgrahamc/webwatch: no buildable Go source files in /Users/zunermuka/go/src/github.com/jgrahamc/webwatch

[zunermuka ~/go/src/github.com/jgrahamc/webwatch]$ ls -la
total 16K
drwxr-xr-x  9 zunermuka staff  306 11 15 14:49 .
drwxr-xr-x  3 zunermuka staff  102 11 15 14:49 ..
drwxr-xr-x 12 zunermuka staff  408 11 15 14:49 .git
-rw-r--r--  1 zunermuka staff  274 11 15 14:49 .gitignore
-rw-r--r--  1 zunermuka staff 1087 11 15 14:49 LICENSE
-rw-r--r--  1 zunermuka staff  247 11 15 14:49 Makefile
-rw-r--r--  1 zunermuka staff  519 11 15 14:49 README.md
drwxr-xr-x  4 zunermuka staff  136 11 15 14:49 gmsl
drwxr-xr-x  3 zunermuka staff  102 11 15 14:49 src
[zunermuka ~]$ cd /Users/zunermuka/go/src/github.com/jgrahamc/webwatch/src/webwatch/
[zunermuka ~/go/src/github.com/jgrahamc/webwatch/src/webwatch]$ go build -v -a
runtime
errors
unicode/utf8
sync/atomic
math
sort
unicode
sync
container/list
io
syscall
hash
hash/crc32
crypto/subtle
crypto/cipher
crypto/hmac
internal/singleflight
bytes
strings
strconv
bufio
time
math/rand
path
crypto
reflect
crypto/aes
crypto/sha512
crypto/md5
crypto/rc4
crypto/sha1
crypto/sha256
encoding/base64
encoding/pem
os
path/filepath
fmt
encoding/binary
io/ioutil
os/exec
crypto/des
log
compress/flate
flag
math/big
encoding/hex
mime
runtime/cgo
mime/quotedprintable
compress/gzip
net/http/internal
net/url
encoding/asn1
crypto/elliptic
crypto/rand
crypto/rsa
crypto/dsa
crypto/ecdsa
crypto/x509/pkix
net
crypto/x509
net/textproto
mime/multipart
crypto/tls
net/http
net/smtp
[zunermuka ~/go/src/github.com/jgrahamc/webwatch/src/webwatch]$ ls -la
total 6600K
drwxr-xr-x 4 zunermuka staff     136 11 15 15:10 .
drwxr-xr-x 3 zunermuka staff     102 11 15 14:49 ..
-rwxr-xr-x 1 zunermuka staff 6753228 11 15 15:10 webwatch
-rw-r--r-- 1 zunermuka staff    2669 11 15 14:49 ww.go
[zunermuka ~/go/src/github.com/jgrahamc/webwatch/src/webwatch]$ go install
[zunermuka ~/go/src/github.com/jgrahamc/webwatch/src/webwatch]$ ls -la
total 4K
drwxr-xr-x 3 zunermuka staff  102 11 15 15:59 .
drwxr-xr-x 3 zunermuka staff  102 11 15 14:49 ..
-rw-r--r-- 1 zunermuka staff 2669 11 15 14:49 ww.go
[zunermuka ~/go/src/github.com/jgrahamc/webwatch/src/webwatch]$ cd
[zunermuka ~]$ which webwatch
/Users/zunermuka/go/bin/webwatch
[zunermuka ~]$ webwatch --help
Usage of webwatch:
  -from address
      Email address to send from
  -password Password
      Password for SMTP server
  -smtp server
      Address of SMTP server to use (host:port) (default "gmail-smtp-in.l.google.com:25")
  -to addresses
      Comma-separated list of email addresses to send to
  -url URL
      URL to check
  -username Username
      Username for SMTP server
  -warn string
      Send email if this string is found in the web page

コメント

このブログの人気の投稿

[memo] LibreOffice バージョン: 5.2.6.2 Calc でエラーがでた BASIC を読み込む際の エラー:一般的なエラー.一般的な I/O エラー。

[memo] macbook air の wezterm で \ backslash を入力する macOS Left and Right Option Key を設定する

[memo] 日本語のファイル名をSafari でダウンロードするとバージョン 10.0.3 (11602.4.8.0.1) でも文字化けするのが辛い