[BUILD] Sync package versions via xtask + scaffold CHANGELOG#357
Open
justin13888 wants to merge 1 commit into
Open
[BUILD] Sync package versions via xtask + scaffold CHANGELOG#357justin13888 wants to merge 1 commit into
justin13888 wants to merge 1 commit into
Conversation
Deploying capsule with
|
| Latest commit: |
36db49a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://37e7cbc8.capsule-22k.pages.dev |
| Branch Preview URL: | https://build-version-sync-xtask.capsule-22k.pages.dev |
5 tasks
1cedadb to
2291b6b
Compare
1acf085 to
36db49a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Second PR in the release-automation stack for #18 (stacked on #356). Establishes one repo-wide version with a single patchable source of truth per package, plus a tested tool that writes a new version into all of them at once.
Version SSoT consolidation
capsule-media/Cargo.toml—version = "0.1.0"→version.workspace = true, so rootCargo.toml's[workspace.package] versionis now the sole SSoT for every Rust crate.gradle.properties— newcapsule.versionName/capsule.versionCode;capsule-android/build.gradle.ktsnow reads them (providers.gradleProperty(...)).capsule-swift/Project.swift—MARKETING_VERSION(+CURRENT_PROJECT_VERSION) added to the sharedbaseSettings; the iOS app had no declared version before.package.jsonwas0.0.1; Android was1.0).xtaskcrate (new workspace member,publish = false)xtask set-version <X.Y.Z>writes the version into every SSoT: rootCargo.toml+pyproject.toml(toml_edit, formatting/comments preserved), bothpackage.json(surgical regex, formatting preserved),gradle.properties(name set, code incremented — it's a monotonic Android build number), andProject.swift(MARKETING_VERSION).&str -> Result<String>function with unit tests (CLAUDE.md testability). Covered by the existingcargo test --workspace.Wiring
justfile—just set-version <X.Y.Z>andjust changelog(release group).CHANGELOG.md— minimal generated-by-convco stub (the first release populates it; markdownlint-ignored). Note: a fullconvco changeloghere would dump 452 lines of pre-Conventional-Commits history under "Unreleased" since there are no tags yet — the stub is the cleaner baseline.ci.yml—xtask/**added to the rust paths-filter.Verification (local)
cargo test -p xtask→ 7/7 (editors + error paths).cargo clippy -p xtaskwith CI flags → clean.cargo fmt --check→ clean.just set-version 0.2.0then0.1.0→ every SSoT updated in lockstep;cargo metadataconfirmscapsule-media/xtaskinherit the workspace version;cargo build -p capsule-mediabuilds at0.1.0.just lint-check-rust+just format-check-rust→ clean.markdownlint→ 0 errors (CHANGELOG ignored).kotlinjob,build-ios.yml'stuist generate).Related Issues
Part of #18 (stack 2/3).
Contributor Checklist