Steps to reproduce: ```bash $ git clone https://github.com/bndw/pick -b develop $ cd pick $ make goget # (to install dependencies) $ sed -i "s/go tool vet src/go tool vet -v src/" Makefile # (to enable vet's verbose mode) $ make govet ```
Output: ``` vet: src/main.go:7:2: could not import github.com/bndw/pick/commands (can't find import: github.com/bndw/pick/commands) Checking file src/main.go vet: src/backends/disk.go:11:2: could not import github.com/bndw/pick/errors (can't find import: github.com/bndw/pick/errors) Checking file src/backends/client.go Checking file src/backends/config.go Checking file src/backends/disk.go Checking file src/backends/mock.go vet: src/backends/mock_test.go:7:2: could not import github.com/bndw/pick/backends (can't find import: github.com/bndw/pick/backends) Checking file src/backends/mock_test.go vet: src/commands/add.go:7:2: could not import github.com/bndw/pick/errors (can't find import: github.com/bndw/pick/errors) Checking file src/commands/add.go Checking file src/commands/backup.go Checking file src/commands/cat.go Checking file src/commands/copy.go Checking file src/commands/export.go Checking file src/commands/list.go Checking file src/commands/remove.go Checking file src/commands/root.go Checking file src/commands/util.go Checking file src/commands/version.go src/commands/version.go:15: can't check non-constant format in call to Printf vet: src/config/config.go:7:2: could not import github.com/BurntSushi/toml (can't find import: github.com/BurntSushi/toml) Checking file src/config/config.go vet: src/crypto/aes_gcm.go:10:2: could not import github.com/bndw/pick/crypto/pbkdf2 (can't find import: github.com/bndw/pick/crypto/pbkdf2) Checking file src/crypto/aes_gcm.go Checking file src/crypto/client.go Checking file src/crypto/config.go Checking file src/crypto/openpgp.go Checking file src/crypto/aes_gcm_test.go Checking file src/crypto/openpgp_test.go vet: src/crypto/pbkdf2/pbkdf2.go:10:2: could not import golang.org/x/crypto/pbkdf2 (can't find import: golang.org/x/crypto/pbkdf2) Checking file src/crypto/pbkdf2/pbkdf2.go vet: src/crypto/scrypt/scrypt.go:6:2: could not import golang.org/x/crypto/scrypt (can't find import: golang.org/x/crypto/scrypt) Checking file src/crypto/scrypt/scrypt.go Checking file src/errors/errors.go vet: src/safe/add.go:4:2: could not import github.com/bndw/pick/errors (can't find import: github.com/bndw/pick/errors) Checking file src/safe/account.go Checking file src/safe/add.go Checking file src/safe/backup.go Checking file src/safe/get.go Checking file src/safe/list.go Checking file src/safe/load.go Checking file src/safe/remove.go Checking file src/safe/replace.go Checking file src/safe/safe.go Checking file src/safe/save.go Checking file src/safe/add_test.go Checking file src/safe/get_test.go Checking file src/safe/list_test.go Checking file src/safe/remove_test.go Checking file src/safe/replace_test.go Checking file src/safe/utils_test.go vet: src/utils/clipboard.go:4:2: could not import github.com/atotto/clipboard (can't find import: github.com/atotto/clipboard) Checking file src/utils/clipboard.go Checking file src/utils/format.go Checking file src/utils/password_generator.go Checking file src/utils/user_input.go make: *** [govet] Error 1 ``` There are two main issues: - `src/commands/version.go:15: can't check non-constant format in call to Printf` - `could not import / can't find import` Is this a bug in `go tool vet`? Reproducible with different go versions (tested on 1.6.2, 1.7.1) on Debian and OS X. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.