Skip to content

Suggestion: Warn about a likely typo in monorepo config #1544

@asaites

Description

@asaites

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions