Repository navigation
feat(monorepo): add workspace.nestedPackages to give a file to the most specific package - #1270
Merged
Merged
Conversation
…st specific package
BryanFRD
enabled auto-merge (squash)
October 4, 2026 17:59
Contributor
There was a problem hiding this comment.
Nothing blocking. The ownership logic is now in one place (owns_file / relative_path), every caller passes nested through, and why agrees with the touch check. A three-level chain (root > app > plugin) resolves to the innermost package. shared mode keeps today's behaviour because the list is empty. I found no other path-prefix ownership code in the repo that skips the exclusion.
Nit: src/config/package.rs tests need a blank line between no_changed_files_is_not_a_touch and fn nested.
ferrflow Bot
added a commit
that referenced
this pull request
Oct 4, 2026
## [7.28.0] - 2026-10-04 ### Features - feat(monorepo): add workspace.nestedPackages to give a file to the most specific package (#1270)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1258.
When one package's
pathcontains another's (FerrLabs/FerrVault: operator at., CLI atcli), a file under the inner path counts for both, so a CLI-only commit also releases the operator.New opt-in key
workspace.nestedPackages:shared(default): unchanged behaviour.exclusive: each changed file goes to the package with the longest matching path, so a nested package owns its subtree.sharedPathsstill count as an explicit opt-in.Applied everywhere a file is attributed to a package: touch detection, commit scoping for the bump and changelog, recovered releases,
ferrflow diffandferrflow why(which now reports a file owned by a nested package as unmatched).Notes:
PackageConfig::is_touched_bytakes the nested paths as a third argument. The library API is not semver-guarded (config structs gain public fields in minors), and a two-argument wrapper would be dead code in the binary, so no wrapper.Config::nested_package_paths, pluswhytests on a real repo for both modes.