Skip to content

Commit a068d81

Browse files
committed
switch to sigstore for all checksums
1 parent 3540d68 commit a068d81

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

versions.sh

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,6 @@ check_file() {
4040
return 0
4141
fi
4242

43-
# TODO is this even necessary/useful? the sigstore-based version above is *much* faster, supports all current versions (not just 3.12+ like this), *and* should be more reliable 🤔
44-
local sbom
45-
if sbom="$(
46-
wget -qO- -o/dev/null "$url.spdx.json" \
47-
| jq --arg filename "$filename" '
48-
first(
49-
.packages[]
50-
| select(
51-
.name == "CPython"
52-
and .packageFileName == $filename
53-
)
54-
)
55-
| .checksums
56-
| map({
57-
key: (.algorithm // empty | ascii_downcase),
58-
value: (.checksumValue // empty),
59-
})
60-
| if length < 1 then
61-
error("no checksums found for \($filename)")
62-
else . end
63-
| from_entries
64-
| if has("sha256") then . else
65-
error("missing sha256 for \($filename); have \(.)")
66-
end
67-
'
68-
)" && [ -n "sbom" ]; then
69-
checksums["$fullVersion"]="$(jq <<<"${checksums["$fullVersion"]:-null}" --arg type "$type" --argjson sums "$sbom" '.[$type] += $sums')"
70-
return 0
71-
fi
72-
7343
if ! wget -q -O /dev/null -o /dev/null --spider "$url"; then
7444
return 1
7545
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy