Repository navigation
Conversation
🧭 Changeset detectedMerging this PR will release the following updates: sampo (Cargo) — minor version bumpMinor changes
Patch changes
sampo-core (Cargo) — minor version bumpMinor changes
Patch changes
sampo-github-action (Cargo) — minor version bumpMinor changes
Patch changes
|
Is this bullet saying that the released Sampo is mixing up version numbers from different ecosystems for packages with the same name today, and your fix(es) makes Sampo detect the issue and prevent a release with potentially the wrong version number from happening? |
|
Yes, it mixes them up today, but the fix removes the cause and detects nothing. Released Sampo keys new versions by bare name, so a crate and an npm package with the same name can silently take each other's version in exact pins and in the root |
|
Sorry for the delay on this, let me gather my thoughts about it... |
What has changed?
Closes #382.
[packages] versioning = "calver"gives each released package the versionYYYY.M.MICRO. SemVer stays the default. The year and month are those of the UTC date, or those ofpackages.calver_year_monthfor a release line..sampo/prereleaseholds changesets.Not in this PR: the GitHub App's comments name numeric bumps, which CalVer does not make. A follow-up can change that wording.
How is it tested?
Config tests (
reads_calver_options,rejects_invalid_calver_options), a table test of the version rule (calver_versions_from_utc_or_a_fixed_month), and release tests at a fixed instant for each rule: the bump level, fixed groups, dependents, the refusals, ignored members, automatic entries, the release line, preserved changesets, same-name packages and inherited Cargo versions. Each test fails without the change.cargo fmt, both Clippy configurations,cargo testandpnpm run checkpass.How is it documented?
The "Versioning" and
[packages]sections of the CLI README, andminorchangesets.