-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I recently migrated to a monorepo, but when updating the knope.toml file, I missed the s in packages, resulting in something like this:
[package.old-package]
versioned_files = ["old-package/Cargo.toml", "Cargo.lock"]
changelog = "old-package/CHANGELOG.md"
scopes = ["old-package"]
[package.new-package]
versioned_files = ["new-package/Cargo.toml", "Cargo.lock"]
changelog = "new-package/CHANGELOG.md"
scopes = ["new-package"]
After adding the new-package and setting the git tags, I ran knope release --dry-run, which said it would bump the old tag forward:
Would run git commit -m "chore: prepare release 0.4.4"
Would run git push
Would create a release on GitHub with name 0.4.4 (2025-09-10) and tag v0.4.4 and body:
## Features
- add new-package crate
For the interested, here's the output after fixing the typo and the relevant `git log --oneline`
The relevant output of git log --oneline, showing the tags and conventional commits:
68cac96 (HEAD -> migration-branch) ci: update CI
3635e26 (tag: new-package/v0.0.0) feat(new-package): add new-package crate
1e9d8dc chore: move old-package to subdir
85e56a6 (tag: v0.4.3, tag: old-package/v0.4.3, origin/main, origin/HEAD, main) chore: prepare release 0.4.3 [skip ci]
After fixing the typo, I instead get:
Would run git commit -m "chore: prepare releases"
Would run git push
Would create a release on GitHub with name new-package 0.1.0 and tag new-package/v0.1.0 and autogenerated body
I think this is an easy enough mistake to make that it would be beneficial to try to warn users about it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels