fix: add missing rc channel to semver_channel()/ReleaseChannel
semver_channel() checked for alpha/beta/nightly prefixes but had no rc branch — a real release-candidate tag (v0.2.0-rc.1) fell through every check and was silently classified as "stable", making an rc indistinguishable from an actual stable release in any channel-based logic. Surfaced while writing docs/versioning.md (musehub repo).
- Added "rc" to ReleaseChannel and _CHANNEL_MAP/_CHANNELS. - Reordered semver_channel()'s checks to match the documented maturity order (nightly < alpha < beta < rc < stable). - Updated an existing test that had literally codified the bug as expected behavior (test_rc_defaults_to_stable) to assert the correct behavior instead; added a new test for genuinely unrecognized prefixes still defaulting to stable. - Updated --channel help text and module docstrings to list rc.
73/73 tests pass, zero regressions, zero new mypy errors (confirmed against baseline).
Semantic Changes
9 symbols
Files Changed
~3
1120 in snapshot
0 comments
muse hub commit comment sha256:254e662fa9d2be172cd4d0ad512b1a7a2cba596ec61b3d974053fccb83c57288 --body "your comment"
No comments yet. Be the first to start the discussion.