Skip to content

Fix excludeVersionOnlyChanges dependency rewrites - #6013

Closed
Bharat Middha (bmiddha) wants to merge 1 commit into
microsoft:mainfrom
bmiddha:fix-exclude-version-dependency-rewrites
Closed

Fix excludeVersionOnlyChanges dependency rewrites#6013
Bharat Middha (bmiddha) wants to merge 1 commit into
microsoft:mainfrom
bmiddha:fix-exclude-version-dependency-rewrites

Conversation

@bmiddha

Copy link
Copy Markdown
Member

Summary

  • exclude package.json changes generated by rush version --bump when they contain only a package version bump and exact local dependency range rewrites
  • verify each rewritten dependency is a Rush project whose version changed in the same diff and reuse PublishUtilities.getNewDependencyVersion() semantics
  • keep arbitrary range edits, dependency additions/removals, non-local changes, and unrelated package changes substantive

This prevents auto-bump changes like #6009 and #6010 from requesting redundant change files.

Validation

  • rushx test --test-path-pattern ProjectChangeAnalyzer (39 tests)
  • rush build --to @microsoft/rush-lib

Recognize dependency ranges rewritten by rush version --bump only when the local dependency was bumped in the same diff.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bmiddha

Copy link
Copy Markdown
Member Author

Closing as a duplicate of #6012, which includes the same conservative generated-range validation plus broader specifier coverage and direct bump-workflow validation.

@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Sep 4, 2026
@bmiddha
Bharat Middha (bmiddha) deleted the fix-exclude-version-dependency-rewrites branch September 4, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants