Skip to content

Add rustc toolchain to alpine images#2488

Open
nikeee wants to merge 1 commit intonodejs:mainfrom
nikeee:fix/add-rust-cargo
Open

Add rustc toolchain to alpine images#2488
nikeee wants to merge 1 commit intonodejs:mainfrom
nikeee:fix/add-rust-cargo

Conversation

@nikeee
Copy link
Copy Markdown

@nikeee nikeee commented May 6, 2026

Description

Adds rustc and cargo. Uses host-native architecture, so should fix the below-mentioned issues for every arch except x64.

Node requires at least rust 1.82, which is available in alpine 3.22/3.23 (they currently ship 1.87).

Motivation and Context

See #2486 and #2487

Testing Details

Still building.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • I have read the CONTRIBUTING.md document.

@nikeee nikeee force-pushed the fix/add-rust-cargo branch 6 times, most recently from 59e030f to f4f3919 Compare May 6, 2026 21:12
Ran `./update.sh 26 alpine3.22,alpine3.23`
@nikeee
Copy link
Copy Markdown
Author

nikeee commented May 6, 2026

I'm currently unable to verify end-to-end that this fixes the issue as I'm getting a segfault after ~10 minutes when I try to build anything in this repository from source. But the warnings that it cannot find rustc/cargo are gone, so it will probably work. Might just run this through CI and see what happens.I don't think that it is related to the rust issue as it also happens on the main branch. Probably just my local broken docker instance.

Update:
Works:

/ # node
Welcome to Node.js v26.0.0.
Type ".help" for more information.
> Temporal
Object [Temporal] {}
> 
/ # uname -a
Linux 4da0360be3ae 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 aarch64 Linux

@nikeee nikeee marked this pull request as ready for review May 6, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants