cold-summer-59604
05/22/2026, 1:31 AMhappy-kitchen-89482
05/22/2026, 1:35 AMcold-summer-59604
05/22/2026, 2:33 AMfast-nail-55400
05/22/2026, 2:39 AMfast-nail-55400
05/22/2026, 2:40 AM--python-resolves-to-uploaded-prior-to="{'RESOLVE_NAME': 'TIMESTAMP'}" ?fast-nail-55400
05/22/2026, 2:41 AMcold-summer-59604
05/22/2026, 2:45 AMfast-nail-55400
05/22/2026, 2:46 AMcold-summer-59604
05/22/2026, 2:46 AMfast-nail-55400
05/22/2026, 2:46 AMI actually finished up at the company yesterday and no longer have access to the machineack
fast-nail-55400
05/22/2026, 2:47 AMpants package where the default uploaded prior to was in effect but the lockfile metadata had the shorter time value from when it was specified on the CLI during lockfile generation?cold-summer-59604
05/22/2026, 2:53 AMfast-nail-55400
05/22/2026, 2:57 AMpants package was called, was --python-resolves-to-uploaded-prior-to= set at all (whether in pants.toml or on CLI etc.)?fast-nail-55400
05/22/2026, 2:58 AMcold-summer-59604
05/22/2026, 3:05 AMpants package was calledcold-summer-59604
05/22/2026, 3:05 AMhappy-kitchen-89482
05/22/2026, 10:45 PMuv does, for example): In that case a change in that field would cause a new lockfile to be generated at use time. So this validation would be reflecting the expected reality.
My point being that your use case is actually also expressing that you don't ever want to autogenerate lockfiles, and only want them to be generated when explicitly asked for?happy-kitchen-89482
05/28/2026, 11:15 PMcold-summer-59604
05/29/2026, 2:23 AMhappy-kitchen-89482
05/29/2026, 4:59 AMuv will regen lockfiles before uv run, so I guess that is less of a concern if you're about to run code anyway. So maybe on balance removing that over-strict validation is the way to go.cold-summer-59604
05/29/2026, 5:31 AMhappy-kitchen-89482
05/29/2026, 6:47 AMuv does, so it seems like what users want (and we might make such a change in the future). But I should clarify that uv only does this if inputs to the lockfile have changed. The assumption is that if you have made such a change then you want the lockfile to be updated to match.
uv will regenerate if the thing you changed is the "uploaded prior to" value. And you're effectively saying that you would not want that to happen. So I think the solution would be to be able to opt in or out of auto-regeneration (again, this is in a hypothetical future where we offer such a feature).
To be clear, this has no immediate practical implications. I'm trying to tease out the semantic implications of not invalidating the lockfile based on this specific input value.happy-kitchen-89482
05/29/2026, 6:47 AMcurved-manchester-66006
05/29/2026, 9:41 PM