Repository navigation
Conversation
The Windows source build pulls some vcpkg dependencies (notably the gsasl port -> gsasl-<ver>.tar.gz) only from the GNU FTP network (ftpmirror.gnu.org / ftp.gnu.org). That network is intermittently unreachable; when it times out the native build fails with 'Download failed, halting portfile'. Set X_VCPKG_ASSET_SOURCES to an x-script asset provider that redirects GNU-FTP asset URLs to a reachable GNU mirror (mirrors.kernel.org, overridable via NODE_LIBCURL_GNU_MIRROR) and falls back to the original URL for every other asset. The value is appended to any X_VCPKG_ASSET_SOURCES the consumer already set, so their asset cache keeps precedence. vcpkg still verifies each asset's SHA512, so the mirror swap cannot substitute a different file. The helper uses only native Node.js modules and is a no-op on non-Windows (the source build only runs on Windows).
vcpkg launches the x-script asset command with CreateProcessW (no shell) in its own build environment, where PATH is reset. A bare `node` program token therefore isn't found and the download fails with 'CreateProcessW failed with 2', so vcpkg falls back to the unreachable GNU-FTP origin and times out. Use process.execPath (the absolute path to the running Node) as the program token instead of `node`, keeping both the interpreter and script paths quoted for spaces.
fix(install): fall back to a GNU mirror for vcpkg asset downloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.