Flatpak release build fails: cargo 1.83.0 can't parse edition2024 manifest (time-core) #293
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#293
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Flatpak release job fails on every tag (confirmed on run 737 /
v0.0.1-rc.16).Failing step + error
cargo build --release --locked(inapps/client/src-tauri), exit 101 — before flatpak-builder runs:Cause
A transitive dep (
time-core 0.1.9) declaresedition = "2024"in its manifest.edition2024was only stabilized in Cargo/Rust 1.85.0. The workflow hard-pins the toolchain to1.83.0(.forgejo/workflows/release-flatpak.yml:40), so cargo can't even parse the manifest, and--lockedforbids resolving an oldertime-core.Fix
Bump
RUST_TOOLCHAINto1.85.0(or newer) at.forgejo/workflows/release-flatpak.yml:40and refresh the explanatory comment (lines 36–37). The declaredrust-version = "1.77"floor inapps/client/src-tauri/Cargo.tomlis just a minimum and stays.Bundled follow-up (version stamping)
While here, the Flatpak path still ships a hardcoded
0.0.0(the web bundle'sapp.jsonexpo.version→ settings footer, andsrc-tauri/tauri.conf.json), unlike the API/Android paths fixed in #290/#292. Add a stamp step (afterpnpm rebuild, beforeexport:web) that writes the tag version intoapps/client/app.jsonexpo.versionandapps/client/src-tauri/tauri.conf.jsonversion. Stamp only those two (notCargo.toml) to avoid dirtyingCargo.lockunder--locked.