Skip to content

Add ecosystem matching mode for dependency diff#230

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
abhinavgautam01:feature/diff-ignore-lockfile-changes-190
Jun 8, 2026
Merged

Add ecosystem matching mode for dependency diff#230
andrew merged 1 commit into
git-pkgs:mainfrom
abhinavgautam01:feature/diff-ignore-lockfile-changes-190

Conversation

@abhinavgautam01

Copy link
Copy Markdown
Contributor

closes #190

Summary

Adds an opt-in git pkgs diff --by=ecosystem mode for comparing dependency sets across lockfile migrations.

Changes

  • Add --by=manifest|ecosystem to git pkgs diff
  • Keep existing manifest-path-sensitive behavior as the default
  • Match by ecosystem + package name when --by=ecosystem is used
  • Suppress add/remove noise when identical resolved packages move between lockfiles
  • Still report real version changes across lockfile migrations
  • Document the new mode in the README

Testing

  • go test ./cmd -run 'Diff|ComputeDiff'
  • go test ./...
  • go tool golangci-lint run ./...
  • git diff --check

@andrew andrew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally — refactor preserves default behavior, the new --by=ecosystem path correctly suppresses noise across lockfile migrations and still reports real version changes. Nice side fix adding PURL/Kind to changesToDeps.

@andrew andrew merged commit 88af619 into git-pkgs:main Jun 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore lockfile changes in git pkgs diff

2 participants