Add `--no-upgrade-package` to opt-out of upgrading a specific package (#7177)
by cscanlin
·
Feb 06, 2026 at 19:06 UTC
·
scan-3093443303f3313a
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Critical (100%)
Add `--no-upgrade-package` option to globally opt-out of upgrading a specified package.
`no_upgrade_package` added to `ToolUpgradeArgs` in lib.rs
398 lines added in tests/it/lock.rs
No mention of documentation updates in the diff.
First-time contributor to this repository. unfamiliar with 10 files being modified.
Review 1 high-priority file(s)
crates/uv/tests/it/lock.rs
+398
398 lines changed; Source code
crates/uv-configuration/src/package_options.rs
+68
68 lines changed; Source code
crates/uv-settings/src/settings.rs
+24
Source code
crates/uv-cli/src/lib.rs
+12
Source code
crates/uv-cli/src/options.rs
+8
Source code
crates/uv-requirements/src/upgrade.rs
+4
Source code
crates/uv-settings/src/lib.rs
+4
Source code
crates/uv/src/settings.rs
+7
Source code
crates/uv/src/commands/project/lock.rs
+1
Source code
crates/uv/tests/it/show_settings.rs
+2
Source code
82
minutes to review
extensive
effort level
none
staleness risk
Schedule dedicated review time; consider pair review
Critical risk level requires changes before approval
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.
First contribution - consider welcoming and providing extra context