mirror of https://github.com/tailscale/tailscale/
tool/gocross: embed the version explicitly with linker flags
We need to build gocross from multiple repos, but Go's innate git hash embedding only works when you build gocross from this repo, not when you build it from elsewhere via 'go build tailscale.com/tool/gocross'. Instead, explicitly embed the version found with 'git rev-parse HEAD', which will work from any git repo. Signed-off-by: David Anderson <danderson@tailscale.com>pull/7364/head
parent
7444dabb68
commit
66621ab38e
Loading…
Reference in New Issue