Skip to content

Commit 25da668

Browse files
authored
chore: update checksums (#476)
* chore: update checksums * update checksums
1 parent c35e48d commit 25da668

File tree

3 files changed

+57
-12
lines changed

3 files changed

+57
-12
lines changed

MODULE.bazel.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hack/checksums.sh

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/sh
2+
3+
# Copyright 2024 Google Inc. All rights reserved.
4+
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -eu
18+
19+
20+
LATEST=$(curl --silent -L https://api.github.com/repos/GoogleContainerTools/container-structure-test/releases/latest | jq -r .tag_name)
21+
22+
TAG="${TAG:-$LATEST}"
23+
24+
25+
echo "Using tag: $LATEST"
26+
27+
checksums="$(curl --silent -L https://github.com/GoogleContainerTools/container-structure-test/releases/download/$TAG/checksums.txt)"
28+
29+
30+
echo "Paste this into repositories.bzl"
31+
echo ""
32+
echo ""
33+
echo ""
34+
35+
echo "_VERSION=\"$TAG\""
36+
echo "_HASHES = {"
37+
while IFS= read -r line; do
38+
read -r sha256 filename <<< "$line"
39+
integrity="sha256-$(echo $sha256 | xxd -r -p | base64)"
40+
filename=${filename#container-structure-test-}
41+
echo " \"$filename\": \"$integrity\","
42+
done <<< "$checksums"
43+
echo "}"
44+
45+
echo ""

repositories.bzl

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ load("//bazel:toolchains_repo.bzl", "PLATFORMS", "toolchains_repo")
88
# bazel build @structure_test_st_darwin_amd64//... @structure_test_st_darwin_arm64//... @structure_test_st_linux_arm64//... \
99
# @structure_test_st_linux_s390x//... @structure_test_st_linux_amd64//... @structure_test_st_windows_amd64//...
1010

11-
_VERSION = "v1.19.0"
11+
_VERSION="v1.19.2"
1212
_HASHES = {
13-
"darwin-amd64": "sha256-Df7utNLHZ6hIowpSo0X1oFxNFZoGeZ1DhvkNe+Qg4A4=",
14-
"darwin-arm64": "sha256-qYg6KylartuF5Prmwrs172fycCWoC+TmSe7MReNOT4s=",
15-
"linux-amd64": "sha256-+jSKFvjR1WN+vciuTY4UhbdXT8950SvqjbX9qNVDf3U=",
16-
"linux-arm64": "sha256-Vp1aUQprdkg13C0T5K/Ua1gsOx8YYNye2KoskD2Yh8c=",
17-
"linux-ppc64le": "sha256-dlDUm5hZbLcpRvVWoFHwVzTKdnlPvAikf/16tQSMyOA=",
18-
"linux-s390x": "sha256-KSZ95vOjSVzazyU2sL2qE4MvcHa1TBp1Dt3kDVt1ua8=",
19-
"windows-amd64.exe": "sha256-XqfaYiUqCiS4sDmM1ZJ0lLaiyT4Wru1bBKHHP6KACWY=",
13+
"darwin-amd64": "sha256-mkBKyy32nnivskrvlj0BbPnauhXnUckmBJJZzrDdKYU=",
14+
"darwin-arm64": "sha256-qdy4KDN143ar99X2kIwvXwyQO/NBqwMCZhmVJ65Pu3Y=",
15+
"linux-amd64": "sha256-u6b/uaz5Z0QMHMD+Iz2uM9ClCq4ULxLIWCYZAue/tAU=",
16+
"linux-arm64": "sha256-ebFieFZDy+X9ZbNAhdUi6KPKRyBe+bsizBaBqoimZ88=",
17+
"linux-ppc64le": "sha256-pkvTL+pb9/kxVxs0HBPf3CgTLD4z6mkdXlrZRU+iiIE=",
18+
"linux-s390x": "sha256-v2Nu34HxrGtJ1Op8qWMtoFi36CNW4hI83RRTVd7uq7s=",
19+
"windows-amd64.exe": "sha256-J9+eC2BlqXXhLIDyjMpFm10uFAQcV8HzPOuz76y1WbE=",
2020
}
2121

2222
STRUCTURE_TEST_BUILD_TMPL = """\

0 commit comments

Comments
 (0)