cmd/link: -X requires the full import path for vendored packages #25011
Labels
Milestone
Comments
Marking this as Documentation, because that behavior can't be practically changed. |
Hopefully this issue can still be solved to make import resolution consistent across Otherwise it makes a build dependency on code source layout, also maybe affecting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.1 linux/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?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
I want to see print the
version v0.1.0
What did you see instead?
none
I use
go build -a -v -ldflags="-X github.com/ckeyer/frog/vendor/github.com/ckeyer/commons/version.version=v0.1.0" main.go version
,it works.The text was updated successfully, but these errors were encountered: