Skip to content

Comments

Dockerfile-rust: use base image toolchain instead of reinstalling stable#1654

Merged
anthony-gomez-fastly merged 1 commit intofastly:mainfrom
backkem:rust-dockerfile
Feb 20, 2026
Merged

Dockerfile-rust: use base image toolchain instead of reinstalling stable#1654
anthony-gomez-fastly merged 1 commit intofastly:mainfrom
backkem:rust-dockerfile

Conversation

@backkem
Copy link
Contributor

@backkem backkem commented Feb 13, 2026

Change summary

rustup toolchain install stable re-downloads the latest stable toolchain,
which may differ from the pinned rust: base image version. This seems
redundant and is somewhat non-obvious if you want to pin the Rust version.
(e.g. when pinning Rust 1.92 since the current latest CLI panics with stable:
"version '1.93.1' of Rust has not been validated for use with Fastly Compute.").

Since the base image already ships with the correct toolchain, just add
the wasm target directly.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the
    same update/change?

User Impact

None — only affects the Docker build image, not the CLI itself.

Are there any considerations that need to be addressed for release?

No. Technically this Dockerfile still fails to run CLI v13.3.0 unless you pin the Rust version. This at least centralizes the latter.

@backkem backkem requested a review from a team as a code owner February 13, 2026 10:02
@backkem backkem marked this pull request as draft February 13, 2026 10:08
@backkem backkem marked this pull request as ready for review February 13, 2026 10:34
@jedisct1
Copy link

LGTM.

Serious regressions in the WebAssembly target have occurred a couple of times in Rust releases, so pinning tested versions is a prudent approach.

@anthony-gomez-fastly anthony-gomez-fastly enabled auto-merge (squash) February 20, 2026 22:01
@anthony-gomez-fastly anthony-gomez-fastly merged commit cd07dc9 into fastly:main Feb 20, 2026
9 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.

3 participants