-
Notifications
You must be signed in to change notification settings - Fork 136
Bazel builds started failing due to checksum error #681
Comments
Yup, same thing here |
Might be onto something here. bazelbuild/rules_k8s uses the URL https://github.com/yaml/pyyaml/archive/5.1.2.zip, expecting checksum However, using URL https://github.com/yaml/pyyaml/archive/refs/tags/5.1.2.zip still yields checksum The extracted files from both archives yield the same checksum, so I guess if we use URL https://github.com/yaml/pyyaml/archive/refs/tags/5.1.2.zip the problem should be fixed. Or we can change the checksum to Also, shouldn't we use PyYAML 5.4 in this rule anyway? Since there's an approved PR for the requirements.txt upgrade (#676) |
Keep going back and forth on it but #683 updates the SHA for pyyaml |
Also seeing this issue, its failing most of our builds, we're using the following patch as (very temporary) mitigation: From 383338ca3cb4b94deed34d18ff8237ab53cd28bf Mon Sep 17 00:00:00 2001
From: Luna Duclos <luna.duclos@embark-studios.com>
Date: Tue, 1 Feb 2022 16:28:37 +0100
Subject: [PATCH] Use stable URL for pyyaml download
---
k8s/k8s.bzl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git k8s/k8s.bzl k8s/k8s.bzl
index ad3268d..2fe510b 100644
--- k8s/k8s.bzl
+++ k8s/k8s.bzl
@@ -49,7 +49,7 @@ py_library(
""",
sha256 = "e9df8412ddabc9c21b4437ee138875b95ebb32c25f07f962439e16005152e00e",
strip_prefix = "pyyaml-5.1.2",
- urls = ["https://github.com/yaml/pyyaml/archive/5.1.2.zip"],
+ urls = ["https://github.com/yaml/pyyaml/archive/refs/tags/5.1.2.zip"],
)
# Register the default kubectl toolchain targets for supported platforms
--
2.30.0.windows.2
|
Yes https://github.com/yaml/pyyaml/archive/5.1.2.zip is now redirecting to https://codeload.github.com/yaml/pyyaml/zip/5.1.2 and I believe the new hash is of the HTML page for the redirection: <html><body>You are being <a href="https://codeload.github.com/yaml/pyyaml/zip/5.1.2">redirected</a>.</body></html> |
The hash for the archive is |
This is possibly related: https://twitter.com/shs96c/status/1488480089700503558 |
Locally this is now fixed for us. |
Seems that way. https://twitter.com/tgummerer/status/1488493440103030787?s=20&t=DaupVstH5BiSJd0BgLSa_Q suggests they applied a fix. |
Linking this to an upstream discussion: bazel-contrib/SIG-rules-authors#11 (comment) |
Bazel builds are now failing due to a failed checksum error.
This started happening this morning.
rules_k8s/k8s/k8s.bzl
Line 54 in d05cbea
Anyone else experiencing this?
The text was updated successfully, but these errors were encountered: