MCPcopy
hub / github.com/tailscale/tailscale / tailscaleToolchainRev

Function tailscaleToolchainRev

version-embed.go:36–47  ·  view source on GitHub ↗

lint:ignore U1000 used by tests + assert_ts_toolchain_match.go w/ right build tags

()

Source from the content-addressed store, hash-verified

34
35//lint:ignore U1000 used by tests + assert_ts_toolchain_match.go w/ right build tags
36func tailscaleToolchainRev() (gitHash string, ok bool) {
37 bi, ok := debug.ReadBuildInfo()
38 if !ok {
39 return "", false
40 }
41 for _, s := range bi.Settings {
42 if s.Key == "tailscale.toolchain.rev" {
43 return s.Value, true
44 }
45 }
46 return "", false
47}

Callers 5

TestToolchainMatchesFunction · 0.85
initFunction · 0.85
GetMetaFunction · 0.85
print.goFile · 0.85

Calls

no outgoing calls

Tested by 2

TestToolchainMatchesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…