-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: document that go mod vendor ignores directories that do not contain Go files #57529
Comments
working as intended. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
Duplicate of #26366 |
I am really confused, I am not "asking question" or trying to spark a "general discussion". I encountered an actual bug and was reporting it, as confirmed by your duplicate link. can you clarify what you mean? also, I do think there is an outstanding bug, since the toolchain behaves differently with and without a vendor directory. sorry if I should have been more clear, but note that the project builds correctly before the call to [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]$ |
Sorry for the confusing responses. This is the current expected behavior. See #26366 (comment) . |
all good; I used a full repo as a reproducer, for simplicity, so I get it may have seemed like I was asking about "how do I build this thing". that said, it really confuses me that we have intentionally chosen to have the module cache behave differently to the vendor directory. considering how big a foot gun this is, and how many other github issues link #26366, can we call this out in some documentation that is searchable? I tried googling around for an issue/faq entry, but ended up making a bug since I could not find one. |
This should probably be clearly documented at least at https://go.dev/ref/mod#go-mod-vendor. CC @bcmills @matloob |
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
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: