uv
1bbb05dc - Invalidate `uv.lock` if registry sources are removed (#6026)

Comment changes are shownComment changes are hidden
Commit
319 days ago
Invalidate `uv.lock` if registry sources are removed (#6026) ## Summary Now, if you resolve against a registry, then swap it out for another, we won't reuse the lockfile. (If you don't provide any registry configuration, then we won't enforce this, so that `uv lock --index-url foo` and `uv lock` is stable.) Closes https://github.com/astral-sh/uv/issues/5920.
Author
Parents
  • crates
    • distribution-types/src
      • File
        file.rs
      • File
        index_url.rs
    • uv-resolver/src
      • File
        lock.rs
    • uv
      • src/commands/project
        • File
          lock.rs
      • tests
        • File
          lock.rs
        • File
          lock_scenarios.rs
  • scripts/scenarios/templates
    • File
      lock.mustache