cmd/link: unable to set LDFLAGS -X for a vendored variable #28831
Labels
Comments
Closing as dup of #25011. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
Tried to set a value to a variable in vendored package by import path.
Or
What did you expect to see?
A value of
"1.2.3"
being assigned togithub.com/some/lib/pkg/version.Version
.What did you see instead?
Default value is kept.
The value can be only set with full
$GOPATH
import path:The text was updated successfully, but these errors were encountered: