Retain and respect settings in tool upgrades (#5937)

## Summary

We now persist the `ResolverInstallerOptions` when writing out a tool
receipt. When upgrading, we grab the saved options, and merge with the
command-line arguments and user-level filesystem settings (CLI > receipt
> filesystem).
This commit is contained in:
Charlie Marsh 2024-08-09 14:21:49 -04:00 committed by GitHub
parent 44f94524f3
commit f89403f4f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 604 additions and 131 deletions

View file

@ -2426,10 +2426,6 @@ uv tool upgrade [OPTIONS] <NAME>
</ul>
</dd><dt><code>--quiet</code>, <code>-q</code></dt><dd><p>Do not print any output</p>
</dd><dt><code>--refresh</code></dt><dd><p>Refresh all cached data</p>
</dd><dt><code>--refresh-package</code> <i>refresh-package</i></dt><dd><p>Refresh cached data for a specific package</p>
</dd><dt><code>--reinstall</code></dt><dd><p>Reinstall all packages, regardless of whether they&#8217;re already installed. Implies <code>--refresh</code></p>
</dd><dt><code>--reinstall-package</code> <i>reinstall-package</i></dt><dd><p>Reinstall a specific package, regardless of whether it&#8217;s already installed. Implies <code>--refresh-package</code></p>