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: go build -i
doesn't actually install dependencies
#8255
Labels
Milestone
Comments
Timing the build is telling us nothing. You need to look at the generated build artefacts in $GOPATH/pkg. In this example, I have package "importtest" that imports package "importtest/bar". As you can see here, when I run "go build -i" it builds package "importtest/bar" and puts the generated object file at $GOPATH/pkg/darwin_adm64/importtest/bar.a. ~/src/importtest $ rm -r ~/pkg/darwin_amd64/importtest* ~/src/importtest $ go build -i ~/src/importtest $ ls ~/pkg/darwin_amd64/importtest/ bar.a Are you not observing this behaviour? Status changed to WaitingForReply. |
I'm thinking this might be a duplicate of issue #8242. |
> Is terminus a "package main" ? It was at the time of writing, though it isn't anymore. I plan on open sourcing terminus soon, but for now I have an alternate solution using only some of the packages. The package github.com/adam000/Go-SDL2/demos/showimage (a main package) builds only referencing packages within the repo (Go-SDL2/{sdl/keys,sdl,image}), so that's a nice little self-contained repro. There might be some work on it some time in the near future, so for future reference the SHA of the commit I'm testing with is 327de6af0b00d765e4f2f0dfbddf56f2fc3104a1. If there's anything else you need, let me know. |
If your repros are both for "main" packages then this is a dupe. Status changed to Duplicate. Merged into issue #8242. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by adamh.zero:
The text was updated successfully, but these errors were encountered: