You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following on from issue #24052 I tried to make sure that my app built with added dependencies enabled via a build tag. The "production" deploy of go.pennock.tech/dummyapp consists of building a scratch-based Docker image for pushing as an image to Heroku. It is built with the heroku build-tag, which adds an extra package import, of Heroku's metrics exporter library.
In the same directory and setup (same shell instance) as the previous successful build for #24052 I tried to enable this extra dependency:
% vgo list -m
MODULE VERSION
go.pennock.tech/dummyapp -
github.com/sirupsen/logrus v1.0.4
golang.org/x/crypto v0.0.0-20180222182404-49796115aa4b
golang.org/x/sys v0.0.0-20180222210305-c1138c84af3a
% vgo list -tags heroku -m
MODULE VERSION
go.pennock.tech/dummyapp -
github.com/sirupsen/logrus v1.0.4
golang.org/x/crypto v0.0.0-20180222182404-49796115aa4b
golang.org/x/sys v0.0.0-20180222210305-c1138c84af3a
What did you expect to see?
A successful build.
What did you see instead?
What looks like vgo not using the build tags when deriving the list of dependencies to be resolved, only when later selecting the files to be compiled.
The text was updated successfully, but these errors were encountered:
Before, `Tags` was initialized without -tags build flag.
Now, commands like "vgo build -tags tag1" include files
with build tags.
For golang/go#24053 (`vgo list -m` does not update dependencies like `vgo list`)
Change-Id: I1945afb928534563311c86483aea8fdd02490a0a
Reviewed-on: https://go-review.googlesource.com/113896
Reviewed-by: Bryan C. Mills <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Following on from issue #24052 I tried to make sure that my app built with added dependencies enabled via a build tag. The "production" deploy of
go.pennock.tech/dummyapp
consists of building a scratch-based Docker image for pushing as an image to Heroku. It is built with theheroku
build-tag, which adds an extra package import, of Heroku's metrics exporter library.In the same directory and setup (same shell instance) as the previous successful build for #24052 I tried to enable this extra dependency:
What does vgo think the dependencies are?
What did you expect to see?
A successful build.
What did you see instead?
What looks like
vgo
not using the build tags when deriving the list of dependencies to be resolved, only when later selecting the files to be compiled.The text was updated successfully, but these errors were encountered: