Skip to content

test: fail the build on a PackageVersion nothing references - #130

Merged
Theauxm merged 1 commit into
mainfrom
fix/orphan-package-pins
Sep 17, 2026
Merged

Theauxm merged 1 commit into
mainfrom
fix/orphan-package-pins

Conversation

@Theauxm

@Theauxm Theauxm commented Sep 17, 2026

Copy link
Copy Markdown
Member

Central Package Management lets a PackageVersion stand alone, and with CentralPackageTransitivePinningEnabled that looks like a clean way to force a version onto a package nothing declares. Dependabot only updates a PackageVersion it can tie to a PackageReference, so a standalone pin is invisible to it and never moves again.

The failure is silent both ways: a frozen pin becomes NU1109 the moment a direct dependency needs a higher version, breaking every dependency PR in the repo, and where the pin holds a security floor the floor stops rising. Both had already happened elsewhere in the workspace.

This repo has no orphan pins today. The guard is what keeps it that way. Records Trax.Docs/adr/0015.

Central Package Management lets a PackageVersion stand alone, and with
CentralPackageTransitivePinningEnabled that looks like a clean way to force a
version onto a package nothing declares. Dependabot only updates a
PackageVersion it can tie to a PackageReference, so a standalone pin is
invisible to it and never moves again.

The failure is silent both ways: a frozen pin becomes NU1109 the moment a direct
dependency needs a higher version, breaking every dependency PR in the repo, and
where the pin holds a security floor the floor stops rising. Both had already
happened elsewhere in the workspace.

This repo has no orphan pins today. The guard is what keeps it that way.
Records Trax.Docs/adr/0015.
@Theauxm
Theauxm merged commit 9bc0134 into main Sep 17, 2026
3 checks passed
@Theauxm
Theauxm deleted the fix/orphan-package-pins branch September 17, 2026 19:22
@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant