lint:ignore U1000 used by tests + assert_ts_toolchain_match.go w/ right build tags
()
| 34 | |
| 35 | //lint:ignore U1000 used by tests + assert_ts_toolchain_match.go w/ right build tags |
| 36 | func 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 | } |
no outgoing calls
searching dependent graphs…