-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
tauri.conf.json and the workspace Cargo.toml both declare a version string, but they are updated independently. This manual process already caused version drift once (#470, where tauri.conf.json was stuck at 4.26.6 while Cargo.toml was at 4.37.0). It was fixed in #513 but can regress.
Add an automated guard — either a CI check or a prebuild script — that fails if tauri.conf.json's version field differs from the workspace Cargo.toml [workspace.package].version.
Options
- CI script (preferred): A step in the GitHub Actions workflow that parses both files and fails with a clear message if they differ.
- Prebuild script: A
beforeBuildCommandor npm script that checks version consistency before each build. - Cargo xtask: A workspace-level task (
cargo xtask check-versions) that can be run locally and in CI.
Acceptance Criteria
- Build or CI fails with a clear error message when versions diverge
- The check compares
Cargo.toml[workspace.package].versionwithtauri.conf.jsonversion - Documented in CLAUDE.md or CONTRIBUTING.md so contributors know the constraint
Context
Flagged during PR #513 review.
Reactions are currently unavailable