golang/go

cmd/go: document that go mod vendor ignores directories that do not contain Go files

Open

#57.529 aperta il 30 dic 2022

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)Go (19.008 fork)batch import
DocumentationGoCommandNeedsFixhelp wanted

Metriche repository

Star
 (133.883 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor