cloudflared-mirror/.teamcity
Ingmar Stein 77384c6554
Add build UUID
Recent macOS versions require user permissions to access the local network. This can only be granted for binaries which have a LC_UUID load command. Go 1.24 adds the UUID by default, but the fix was backported to Go 1.22.9 and 1.23 where it requires passing `-B gobuildid` to the linker.

cloudflared uses Cloudflare's Go fork which is based on Go 1.22.5 and doesn't have the backport. Because of this, cloudflared can't talk to any machine on the local network (no route to host) when it's runnning as a non-root user.

This workaround updates the Go fork to go1.22.12-devel-cf and adds `-B gobuildid` so that the binary now has a UUID:

```
❯ dwarfdump --uuid /opt/homebrew/bin/cloudflared
UUID: F2088E17-03A1-34B1-F12C-0DF01F00BA32 (arm64) /opt/homebrew/bin/cloudflared
```

Fixes #1460
2025-05-19 06:56:01 +02:00
..
mac DEVTOOLS-16383: Create GitlabCI pipeline to release Mac builds 2025-04-30 09:57:52 +00:00
windows TUN-8858: update go to 1.22.10 and include quic-go FIPS changes 2025-01-30 03:11:54 -08:00
install-cloudflare-go.sh Add build UUID 2025-05-19 06:56:01 +02:00
package-windows.sh TUN-8585: Avoid creating GH client when dry-run is true 2024-08-05 17:43:58 +01:00