Open VorpalBlade opened 2 months ago
Can ypu make an example of what this feature might work?
I.e. what's in the changelog from the path and how the final changelog looks like
Well, I don't have a good internal model for how release-plz does this currently, but I imagine it works like this:
For each crate:
crates/myawesomecrate/**
borrowing zsh syntax where **
means "recursive glob"). This path would be the one that contains Cargo.toml
If that mental model matches what is going on, it seems like a simple matter to extend that filter to be a list (e.g. ["crates/myawesomecrate/*", "doc/book/src/myawesomecrate"]
I don't see any needs for the changelog to say "oh but this was actually from that other path". It doesn't say "oh this was actually from this other crate" when I use changelog_include
currently.
My use case is changelog for the end user binaries in a multi-crate workspace.
I hope this answers your questions.
Motivations
As documented
changelog_include
can be used to include other packages (very useful!) but not arbitrary paths. This would be useful to include updates todoc/src/mybinary1
(mdbook section) intocrates/mybinary1
changelog. I use a virtual workspace with no top level crate.Solution
Add a new
changelog_include_path
setting which takes a list of paths (relative the root of the repository, or relative release_plz.toml, whichever is more suitable)Alternatives
Manually updating the changelog. That is what I want to get away from, so no.
Additional context