-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make registry hashes optional in the lockfile (#5166)
## Summary If a registry doesn't include hashes, then we won't include them in the lockfile either. Part of: #4924. Closes: #5120.
- Loading branch information
1 parent
8edfdbe
commit e271d1f
Showing
7 changed files
with
300 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
98 changes: 98 additions & 0 deletions
98
crates/uv-resolver/src/snapshots/uv_resolver__lock__tests__hash_optional_present.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
source: crates/uv-resolver/src/lock.rs | ||
expression: result | ||
--- | ||
Ok( | ||
Lock { | ||
version: 1, | ||
distributions: [ | ||
Distribution { | ||
id: DistributionId { | ||
name: PackageName( | ||
"anyio", | ||
), | ||
version: "4.3.0", | ||
source: Registry( | ||
Url { | ||
scheme: "https", | ||
cannot_be_a_base: false, | ||
username: "", | ||
password: None, | ||
host: Some( | ||
Domain( | ||
"pypi.org", | ||
), | ||
), | ||
port: None, | ||
path: "/simple", | ||
query: None, | ||
fragment: None, | ||
}, | ||
), | ||
}, | ||
sdist: None, | ||
wheels: [ | ||
Wheel { | ||
url: UrlString( | ||
"https://files.pythonhosted.org/packages/14/fd/2f20c40b45e4fb4324834aea24bd4afdf1143390242c0b33774da0e2e34f/anyio-4.3.0-py3-none-any.whl", | ||
), | ||
hash: Some( | ||
Hash( | ||
HashDigest { | ||
algorithm: Sha256, | ||
digest: "048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8", | ||
}, | ||
), | ||
), | ||
size: None, | ||
filename: WheelFilename { | ||
name: PackageName( | ||
"anyio", | ||
), | ||
version: "4.3.0", | ||
build_tag: None, | ||
python_tag: [ | ||
"py3", | ||
], | ||
abi_tag: [ | ||
"none", | ||
], | ||
platform_tag: [ | ||
"any", | ||
], | ||
}, | ||
}, | ||
], | ||
dependencies: [], | ||
optional_dependencies: {}, | ||
dev_dependencies: {}, | ||
}, | ||
], | ||
requires_python: None, | ||
by_id: { | ||
DistributionId { | ||
name: PackageName( | ||
"anyio", | ||
), | ||
version: "4.3.0", | ||
source: Registry( | ||
Url { | ||
scheme: "https", | ||
cannot_be_a_base: false, | ||
username: "", | ||
password: None, | ||
host: Some( | ||
Domain( | ||
"pypi.org", | ||
), | ||
), | ||
port: None, | ||
path: "/simple", | ||
query: None, | ||
fragment: None, | ||
}, | ||
), | ||
}: 0, | ||
}, | ||
}, | ||
) |
Oops, something went wrong.