Skip to content
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

[tailscale] runtime/debug: embed Tailscale toolchain git rev #104

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

bradfitz
Copy link
Member

This is another take on #49 (which we stopped using?), and less
intrusive, and also always on.

This puts puts the the Tailscale Go toolchain's git rev in
the binary, accessible as runtime/debug.TailscaleGitRev.

Caller code will have to access it guarded by the "tailscale_go" build
tag.

Updates #49

@bradfitz bradfitz requested a review from raggi September 19, 2024 19:49
@bradfitz bradfitz force-pushed the bradfitz/embed_git_rev branch 2 times, most recently from 4a66346 to 503e192 Compare September 19, 2024 22:28
This is another take on #49 (which we stopped using?), and less
intrusive, and also always on.

This puts puts the the Tailscale Go toolchain's git rev in
the binary, accessible as a new "tailscale.toolchain.rev"
runtime/debug.BuildInfo Setting.

Caller code will have to access it guarded by the "tailscale_go" build
tag.

Updates #49

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
@bradfitz bradfitz merged commit bf15628 into tailscale.go1.23 Sep 19, 2024
5 checks passed
@bradfitz bradfitz deleted the bradfitz/embed_git_rev branch September 19, 2024 23:16
bradfitz added a commit to tailscale/tailscale that referenced this pull request Sep 20, 2024
Update go.toolchain.rev for tailscale/go#104 and
add a test that, when using the tailscale_go build tag, we use the
right Go toolchain.

We'll crank up the strictness in later commits.

Updates #13527

Change-Id: Ifb09a844858be2beb144a420e4e9dbdc5c03ae3a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
bradfitz added a commit to tailscale/tailscale that referenced this pull request Sep 20, 2024
Update go.toolchain.rev for tailscale/go#104 and
add a test that, when using the tailscale_go build tag, we use the
right Go toolchain.

We'll crank up the strictness in later commits.

Updates #13527

Change-Id: Ifb09a844858be2beb144a420e4e9dbdc5c03ae3a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants