MCPcopy
hub / github.com/tailscale/tailscale / osVariant

Function osVariant

version/prop.go:238–249  ·  view source on GitHub ↗

osVariant returns the OS variant string for systems where we support multiple ways of running tailscale(d), if any. For example: "appstore", "macsys", "darwin".

()

Source from the content-addressed store, hash-verified

236//
237// For example: "appstore", "macsys", "darwin".
238func osVariant() string {
239 if IsMacAppStore() {
240 return "appstore"
241 }
242 if IsMacSys() {
243 return "macsys"
244 }
245 if runtime.GOOS == "darwin" {
246 return "darwin"
247 }
248 return ""
249}
250
251var isDev = sync.OnceValue(func() bool {
252 return strings.Contains(Short(), "-dev")

Callers 1

GetMetaFunction · 0.85

Calls 2

IsMacAppStoreFunction · 0.85
IsMacSysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…