mirror of
https://github.com/tailscale/github-action.git
synced 2026-08-19 20:49:24 +00:00
On persistent self-hosted runners the XDG cache directory survives between jobs. When GitHub's Actions cache backend doesn't return a hit (no working backend, evicted entry, etc.), the tailscale.tgz left behind by a previous job is still on disk, and tc.downloadTool() refuses to overwrite an existing destination, failing with "Destination file path ... already exists". Mirror the Windows MSI fix (#259): if the tarball already exists, reuse it when its checksum matches, otherwise delete and re-download. Only the cloud-cache-restore path previously avoided this collision, so the Linux download was unconditional. Fixes #294 Signed-off-by: TowyTowy <towy@airreps.link> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| logout | ||
| index.js | ||