MCPcopy
hub / github.com/tailscale/tailscale / IsUnstableBuild

Function IsUnstableBuild

version/prop.go:216–232  ·  view source on GitHub ↗

IsUnstableBuild reports whether this is an unstable build. That is, whether its minor version number is odd.

()

Source from the content-addressed store, hash-verified

214// IsUnstableBuild reports whether this is an unstable build.
215// That is, whether its minor version number is odd.
216func IsUnstableBuild() bool {
217 return isUnstableBuild.Get(func() bool {
218 _, rest, ok := strings.Cut(Short(), ".")
219 if !ok {
220 return false
221 }
222 minorStr, _, ok := strings.Cut(rest, ".")
223 if !ok {
224 return false
225 }
226 minor, err := strconv.Atoi(minorStr)
227 if err != nil {
228 return false
229 }
230 return minor%2 == 1
231 })
232}
233
234// osVariant returns the OS variant string for systems where we support
235// multiple ways of running tailscale(d), if any.

Callers 9

availableFeaturesFunction · 0.92
withSockStatsFunction · 0.92
clientupdate.goFile · 0.92
NewLocalBackendFunction · 0.92
CrashOnUnexpectedFunction · 0.92
TestHealthMetricFunction · 0.92
GetMetaFunction · 0.85
print.goFile · 0.85

Calls 2

ShortFunction · 0.85
GetMethod · 0.65

Tested by 1

TestHealthMetricFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…