tailscale/version
Andrea Gottardo 6c59d6bff3 version/prop: remove IsMacAppSandboxEnabled
Fixes tailscale/corp#18441

For a few days, IsMacAppStore() has been returning `false` on App Store builds (IPN-macOS target in Xcode).

I regressed this in tailscale/tailscale#11369 by introducing logic to detect the sandbox by checking for the APP_SANDBOX_CONTAINER_ID environment variable. I thought that was a more robust approach instead of checking the name of the executable. However, it appears that on recent macOS versions this environment variable is no longer getting set, so we should go back to the previous logic that checks for the executable path, or $HOME containing references to macsys.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
2024-03-19 10:45:45 -07:00
..
distro cmd/tailscale/cli,version/distro: update support for Alpine (#8701) 2023-07-24 16:53:15 -07:00
mkversion version/mkversion: enforce synology versions within int32 range 2024-03-08 12:47:59 -05:00
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 2020-11-02 19:54:44 -08:00
cmdname.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2023-02-01 15:23:54 -08:00
cmdname_ios.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cmp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
export_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
modinfo_test.go all: cleanup unused code, part 1 (#10661) 2023-12-20 14:50:30 -08:00
print.go version: make all exported funcs compile-time constant or lazy 2023-02-11 07:29:55 +00:00
prop.go version/prop: remove IsMacAppSandboxEnabled 2024-03-19 10:45:45 -07:00
race.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
race_off.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
version.go version: properly handle vcs.modified when it's "false" 2023-05-07 09:15:38 -07:00
version_test.go version: make all exported funcs compile-time constant or lazy 2023-02-11 07:29:55 +00:00