← Back to issue list

fix(hotfix/2.7): build snap with rustc 1.91 to satisfy maturin

View original Github issue

Metadata

Project
charmcraft
Number
#2932
Type
pull request
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Fixed in #2932 by updating rustc to 1.91.1 to satisfy maturin 1.15.0 requirements, resolving snap-build failures.

Resolution: closed resolved

Reason: The PR updates the pinned rustc version from 1.85 to 1.91.1 to meet maturin's minimum requirement, resolving the snap-build failure.

Evaluated by: mr-cal-bot

No scores available.

Issue body

## Summary Stacked on #2931 (which is stacked on #2929). `snap-build` fails in the `charmcraft` part. The snap forces source builds (`PIP_NO_BINARY: ":all:"`), so pip also builds the Rust build backends from source. Modern `maturin` needs a newer rustc than the pinned one: ``` error: rustc 1.85.1 is not supported by the following packages: maturin@1.15.0 requires rustc 1.89 ERROR: Failed to build wheel for maturin ``` The repo pins `cargo-1.85` / `rustc-1.85`. Rust 1.91.1 is available in the `core22` (jammy) archive for every architecture this snap builds for, and it is the same toolchain `hotfix/4.4` pins. ## Test plan CI: `snap-build` compiles `maturin` and the `charmcraft` part completes, which also unblocks `snap-tests`. > [!WARNING] > Generated by an automated agent, not a human. 🤖 **BEEP BOOP I'M A TOASTER** _Model:_ `step-5-preview-free` _Harness:_ opencode CLI

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b — closed resolved Fixed in #2932 by updating rustc to 1.91.1 to satisfy maturin 1.15.0 requirements, resolving snap-build failures.

Update history

Date Change
closed
updated
updated
updated
created

Related work

Related issues

Issue Project State Summary Similarity
#2941 build(hotfix/2.7): build snap with current rust and setuptools charmcraft merged Merged hotfix to fix snap build failures by pinning rustc to 1.91 and bumping protobuf to 4.25.8, resolving compatibility issues with modern build toolchains.
78%