golang/go
View on GitHubcmd/go: document that go mod vendor ignores directories that do not contain Go files
Open
#57,529 opened on Dec 30, 2022
DocumentationGoCommandNeedsFixhelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
What version of Go are you using (go version)?
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
What did you do?
[user@localhost:~]$ git clone https://github.com/ava-labs/avalanchego
[user@localhost:~]$ cd avalanchego
[user@localhost:avalanchego]$ go build -o /dev/null ./main
[user@localhost:avalanchego]$ go mod vendor
What did you expect to see?
[user@localhost:avalanchego]$ go build -o /dev/null ./main
What did you see instead?
[user@localhost:avalanchego]$ go build -o /dev/null ./main
# github.com/supranational/blst/bindings/go
vendor/github.com/supranational/blst/bindings/go/blst.go:16:11: fatal error: blst.h: No such file or directory
16 | // #include "blst.h"
| ^~~~~~~~
compilation terminated.
# github.com/zondax/hid
vendor/github.com/zondax/hid/hid_enabled.go:23:18: fatal error: os/threads_posix.c: No such file or directory
23 | #include "os/threads_posix.c"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.