chore(build): vendor common submodule and sync Cargo.lock on release #80
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VAPP-69-adopt-common-cargo-lock"
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?
Summary
Fixes the recurring "Cargo.lock left behind on release" bug in vervain-apps and vendors the shared
psa-systems/commontask runner so the release logic stops being a per-repo fork.The local
create-releaserecipe bumpedCargo.tomlandpackage.jsonbut never stagedCargo.lock. The v0.2.0 release therefore shipped a lockfile still pinned tovervain-app = 0.1.0whileCargo.tomlread0.2.0; the nextcargorun rewrote the lock and left it dirty (theM Cargo.lockthis PR also commits).Changes
commonas a git submodule andimport 'common/common.just'.create-release. Its_create-releaseengine syncsCargo.lockviacargo update --package vervain-app --precise <ver>and, through therelease_version_filesvariable (added incommon#9 / PC-2), bumpspackage.jsonin the same release commit.release_layoutstaysgeneric;release_crate := "vervain-app"(crate name diverges from thevervain-appsapp/repo name).create-releaseandinstall-hooksrecipes (now inherited). Keep the Dioxus toolchain recipes as local overrides:pre-commit,check+check-server/check-web/check-clippy/check-test,build-css,watch-css,dev-web,dev-desktop,build-web,build-desktop,install.Cargo.lock(vervain-app = 0.2.0) somain's lockfile matchesCargo.toml.Verification
just --evaluate/just --listresolve the import; inherited (create-release,install-hooks,fmt,test) and overridden (pre-commit,check,check-*) recipes both present.cargo metadata --lockedsucceeds; the onlyCargo.lockdelta is thevervain-appversion line.just pre-commit(fmt + clippy +--features servercheck + wasm check + tests, in the CI builder image) run by the commit hook.Merge order
Depends on
commonPR #9 (PC-2), which addsrelease_version_files. The submodule is pinned to that commit. Merge #9 first (as a merge commit, the repo's default, so the pinned commit stays reachable); this PR can then merge. After #9 merges, the submodule gitlink can optionally be bumped tocommon'smain.Closes #VAPP-69.
🤖 Generated with Claude Code