tools/capver: fetch tailcfg.go from raw.githubusercontent.com

github.com/raw only redirects there, and its edge serves stale 504s.
This commit is contained in:
Kristoffer Dalby committed 2026-11-06 14:25:24 +01:00
1 parent dc9513f472
commit 4a531ec7a2
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ import (
const (
ghcrTokenURL = "https://ghcr.io/token?service=ghcr.io&scope=repository:tailscale/tailscale:pull" //nolint:gosec
ghcrTagsURL = "https://ghcr.io/v2/tailscale/tailscale/tags/list?n=10000"
rawFileURL = "https://github.com/tailscale/tailscale/raw/refs/tags/%s/tailcfg/tailcfg.go"
rawFileURL = "https://raw.githubusercontent.com/tailscale/tailscale/refs/tags/%s/tailcfg/tailcfg.go"
outputFile = "../../hscontrol/capver/capver_generated.go"
testFile = "../../hscontrol/capver/capver_test_data.go"
fallbackCapVer = 90