You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the mirror option does not work, it has those bugs:
To the mirror URL silently the path segment "/dist" is appended, this is bad and assumes that the mirror URL is under full control, but in case that the mirror URL mirrors "/dist" path directly the mirror option cannot be used anymore, e.g. https://mirror.example.com/node-dist/ will mirror https://nodejs.org/dist
When running in a self hosted action runner in private network without direct internet connectivity, the mirror option does not work. The getInfoFromManifest will timeout waiting for GitHub to not be reachable and the else branch for "Falling back to download directly from ' will never been reached.
Action version:
v4
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
Expected behavior:
A description of what you expected to happen.
Actual behavior:
A description of what is actually happening.
The text was updated successfully, but these errors were encountered:
Hi @thomasmey 👋,
Thanks for raising these points. Here's some context and current thinking around them:
Mirror URL Automatically Appending /dist:
This behavior is intentional. The setup-node team, in coordination with the Node.js team, chose this design for consistency and standardization. The goal was to accommodate the majority of use cases and simplify configuration for most users.
Timeout in Private Networks:
The action attempts to fetch version from GitHub (getInfoFromManifest) before falling back to direct download. If GitHub is unreachable, the request will time out, and unfortunately, the mirror download path isn't triggered due to the way the fallback logic is structured.
As a workaround, please try configuring the HTTPS_PROXY (or HTTP_PROXY) environment variable to route requests through a proxy server. It might help in environments with restricted outbound access. For guidance, see GitHub’s documentation on using a proxy with self-hosted runners.
the mirror option does not work, it has those bugs:
Action version:
v4
Platform:
Runner type:
Tools version:
Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
Expected behavior:
A description of what you expected to happen.
Actual behavior:
A description of what is actually happening.
The text was updated successfully, but these errors were encountered: