Skip to content

feat: add riscv64gc-unknown-linux-musl builds - #1323

Merged
dsherret merged 3 commits into
mainfrom
riscv64_musl
Oct 10, 2026
Merged

dsherret merged 3 commits into
mainfrom
riscv64_musl

Conversation

@dsherret

@dsherret dsherret commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

riscv64 was the only Linux architecture with a glibc build but no musl one, so Alpine riscv64 users got a binary that can't run.

  • CI: builds riscv64gc-unknown-linux-musl in the rust-musl-cross image (same approach as powerpc64le musl, since the pinned cross revision has no image for it).
  • npm: adds the @dprint/linux-riscv64-musl package.
  • install.sh: riscv64 now goes through the glibc/musl detection instead of hardcoding gnu.
  • dprint upgrade: names the zip after the target triple the binary was built for (env!("TARGET")) instead of rebuilding a triple from the cpu arch and os. The old approach requested zips that don't exist on riscv64 (riscv64 vs riscv64gc) and ppc64le (powerpc64 vs powerpc64le), and bailed on Android, so upgrading was broken on all three. A self-built binary for a triple that isn't published now gets a 404 instead of downloading a different target's build.

The process plugin manifest already has a linux-riscv64-musl key, so nothing changes there.

@dsherret
dsherret merged commit b9f0f7c into main Oct 10, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant