Repository navigation
test(installer): compare the tool's files before uv rebuilds it - #199
Merged
Merged
Conversation
earakely-scale
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The
installercheck fails onmainsince uv 0.13.1 (run).test_adding_a_plugin_by_its_bare_name_keeps_the_version_the_tool_pinsfails with uv 0.13.1 and passes with uv 0.13.0, with the same code. CI installs the newest uv, so each pull request that runs this tier fails too.The test compared the tool's files after
tool.rebuild(), which runsuv tool upgrade --reinstall. In uv 0.13.1, auv tool upgradethat does not change the version now saves its settings touv-receipt.toml(astral-sh/uv#22499). The test environment setsUV_FIND_LINKS, so uv adds those links to the receipt'sfind-linksagain. Thus the comparison found a change that uv made, not a change that agent-env made.The test now compares the files directly after
plugin add, which must change nothing. Then it rebuilds the tool and makes sure that the plugin keeps version 0.3.0.How it was tested
The test ran locally with each uv version on
PATH: