You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tool/gocross
Aaron Klotz 4bb03609bc tool/gocross: ensure child process error codes are propagated on non-Unix
The Unix implementation of doExec propagates error codes by virtue of
the fact that it does an execve; the replacement binary will return the
exit code.

On non-Unix, we need to simulate these semantics by checking for an
ExitError and, when present, passing that value on to os.Exit.

We also add error handling to the doExec call for the benefit of
handling any errors where doExec fails before being able to execute
the desired binary.

Updates https://github.com/tailscale/corp/issues/29940

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
3 months ago
..
autoflags.go tool/gocross: remove trimpath from test builds 1 year ago
autoflags_test.go tool/gocross: remove trimpath from test builds 1 year ago
env.go tool/gocross: a tool for building Tailscale binaries 3 years ago
env_test.go tool/gocross: a tool for building Tailscale binaries 3 years ago
exec_other.go tool/gocross: ensure child process error codes are propagated on non-Unix 3 months ago
exec_unix.go tool/gocross: a tool for building Tailscale binaries 3 years ago
gocross-wrapper.ps1 tool/gocross: fix environment variable clearing in gocross-wrapper.ps1 4 months ago
gocross-wrapper.sh tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script 4 months ago
gocross.go tool/gocross: ensure child process error codes are propagated on non-Unix 3 months ago
gocross_test.go tool/gocross: break circular dependency on tailcfg (#15829) 7 months ago
gocross_wrapper_test.go tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script 4 months ago
gocross_wrapper_windows_test.go tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script 4 months ago
goroot.go all: cleanup unused code, part 1 (#10661) 2 years ago
toolchain.go tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script 4 months ago