Repository navigation
feat: fall back to Node.js unofficial builds for platforms like linux-arm64-musl - #1
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
…-arm64-musl nodejs.org ships no linux-arm64-musl build, but the Node.js unofficial-builds project publishes one with the same archive layout. When the official archive 404s, download it from unofficial-builds.nodejs.org instead. Every download is now checked against the release's SHASUMS256.txt, and when neither source has the platform the error lists the URLs that were tried.
Author
|
Refs BYK#39 |
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.
nodejs.org has no
linux-arm64-muslbuild, but the Node.js unofficial-builds project publishes one with the same archive name and layout. This makes-p linux-arm64-muslwork, which getsentry/toolkit#2513 needs.getNodeBinarytriesnodejs.org/distfirst. On a 404 it falls back tounofficial-builds.nodejs.org/download/releaseand logs that it did. Any other HTTP error still fails right away. It falls back on 404 instead of readingindex.jsonfilesbecause those names don't match the archive names (osx-arm64-tarvsdarwin-arm64).SHASUMS256.txtfor the release. On a mismatch the build fails and the temp archive is deleted, so nothing unverified lands in the cache.linux-arm64-musl, 24.9.0+ and 26.x do), and that musl binaries needlibstdc++andlibatomicon Alpine.Out of scope: the host platform is still detected as
<os>-<arch>, so on an Alpine host with no-p, fossilize picks the glibc build and doesn't embed a code cache for a-musltarget.An upstream PR to BYK/fossilize from this branch follows.
via @BYK.
--
View Session [Sentry]