workspace: single-source the crate version #223
No reviewers
Labels
No labels
priority/P0
priority/P1
priority/P2
release/v0.1.0
status/blocked
status/planned
type/bug
type/design
type/test-gap
type/tracker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/felis!223
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/workspace-version-31"
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?
Refs #31.
Preparation for the v0.1.0 release commit: with the version declared once under
[workspace.package]and inherited by every member, cutting a release edits one line instead of twelve, and a missed member becomes impossible rather than merely detected.Cargo.tomlgainsversion = "0.1.0"; the elevenfelis-*crates and thetestsmember takeversion.workspace = true.nix/package.nixandscripts/make-macos-app.shread[workspace.package] versioninstead ofcrates/felis-cli/Cargo.toml's[package] version, which no longer holds a string.scripts/release/verify.shcompares the tag against the workspace version and asserts every crate inherits it; its self-test gains the crate-pins-its-own-version case.docs/reference/workspace.md("Versioning", "Release gate") andscripts/README.mdstate the new source of truth.Verified:
nix build .#felis(reportsfelis 0.1.0),nix eval --raw .#felis.version=0.1.0,nix build .#checks.x86_64-linux.home-manager-module, andjust check.