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
Aaron Klotz 02f6030dbd tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script
gocross-wrapper.ps1 is a PowerShell core script that is essentially a
straight port of gocross-wrapper.sh. It requires PowerShell 7.4, which
is the latest LTS release of PSCore.

Why use PowerShell Core instead of Windows PowerShell? Essentially
because the former is much better to script with and is the edition
that is currently maintained.

Because we're using PowerShell Core, but many people will be running
scripts from a machine that only has Windows PowerShell, go.cmd has
been updated to prompt the user for PowerShell core installation if
necessary.

gocross-wrapper.sh has also been updated to utilize the PSCore script
when running under cygwin or msys.

gocross itself required a couple of updates:

We update gocross to output the PowerShell Core wrapper alongside the
bash wrapper, which will propagate the revised scripts to other repos
as necessary.

We also fix a couple of things in gocross that didn't work on Windows:
we change the toolchain resolution code to use os.UserHomeDir instead
of directly referencing the HOME environment variable, and we fix a
bug in the way arguments were being passed into exec.Command on
non-Unix systems.

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

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
4 months ago
..
gocross tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script 4 months ago
listpkgs .github/workflows: remove redundant work between staticcheck jobs 6 months ago
binaryen.rev go.toolchain.rev: update to Go 1.20rc3 3 years ago
go tool/gocross: a tool for building Tailscale binaries 3 years ago
go-win.ps1 tool: rename go.ps1 to go-win.ps1 for cmd.exe+Powershell compat 5 months ago
go.cmd tool, tool/gocross: update gocross to support building natively on Windows and add a PowerShell Core wrapper script 4 months ago
helm tool: download helm CLI (#9981) 2 years ago
helm.rev tool: download helm CLI (#9981) 2 years ago
node tool: force HTTP/1.1 in curl to prevent hang behind load balancer 2 years ago
node.rev node.rev: bump to latest 22.x LTS release (#15652) 8 months ago
wasm-opt cmd/tsconnect: run wasm-opt on the generated wasm file 3 years ago
yarn release/dist: run yarn build before building CLI 2 years ago
yarn.rev cmd/tsconnect: pin yarn and node 3 years ago