Skip to content

Commit 72a26a0

Browse files
ci: Fix yq installation failure by pinning version and disabling sumdb check (#2962)
* ci: Pin yq to v4.44.1 and disable checksum check The installation of `yq` via `go install ...@latest` is failing in CI due to a malformed file path in the `v4.52.1` release, which causes `go install` to crash when verifying the module. This change pins `yq` to `v4.44.1`, which is a known working version. It also sets `GONOSUMDB=github.com/mikefarah/yq/v4` to bypass the deprecation/checksum check that `go install` performs against the `latest` version, which was causing failures even when a specific version was requested. Co-authored-by: joshlf <1046063+joshlf@users.noreply.github.com> * ci: Pin yq to v4.44.1 and disable checksum check The installation of `yq` via `go install ...@latest` is failing in CI due to a malformed file path in the `v4.52.1` release, which causes `go install` to crash when verifying the module. This change pins `yq` to `v4.44.1`, which is a known working version. It also sets `GONOSUMDB=github.com/mikefarah/yq/v4` to bypass the deprecation/checksum check that `go install` performs against the `latest` version, which was causing failures even when a specific version was requested. Co-authored-by: joshlf <1046063+joshlf@users.noreply.github.com> * [ci] Pin yq to v4.44.1 and disable checksum check The installation of `yq` via `go install ...@latest` is failing in CI due to a malformed file path in the `v4.52.1` release, which causes `go install` to crash when verifying the module. This change pins `yq` to `v4.44.1`, which is a known working version. It also sets `GONOSUMDB=github.com/mikefarah/yq/v4` to bypass the deprecation/checksum check that `go install` performs against the `latest` version, which was causing failures even when a specific version was requested. Co-authored-by: joshlf <1046063+joshlf@users.noreply.github.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: joshlf <1046063+joshlf@users.noreply.github.com>
1 parent c6a9490 commit 72a26a0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,9 @@ jobs:
893893
name: Check that all toolchains listed in Cargo.toml are tested in CI
894894
steps:
895895
- name: Install yq (for YAML parsing)
896-
run: go install github.com/mikefarah/yq/v4@latest
896+
# FIXME(https://github.com/mikefarah/yq/issues/2587): Remove
897+
# `GONOSUMDB` once this bug is fixed.
898+
run: GONOSUMDB=github.com/mikefarah/yq/v4 go install github.com/mikefarah/yq/v4@v4.44.1
897899
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
898900
with:
899901
persist-credentials: false
@@ -905,7 +907,9 @@ jobs:
905907
name: Check all-jobs-succeeded depends on all jobs
906908
steps:
907909
- name: Install yq (for YAML parsing)
908-
run: go install github.com/mikefarah/yq/v4@latest
910+
# FIXME(https://github.com/mikefarah/yq/issues/2587): Remove
911+
# `GONOSUMDB` once this bug is fixed.
912+
run: GONOSUMDB=github.com/mikefarah/yq/v4 go install github.com/mikefarah/yq/v4@v4.44.1
909913
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
910914
with:
911915
persist-credentials: false
@@ -931,7 +935,9 @@ jobs:
931935
name: Run Git hooks
932936
steps:
933937
- name: Install yq (for YAML parsing)
934-
run: go install github.com/mikefarah/yq/v4@latest
938+
# FIXME(https://github.com/mikefarah/yq/issues/2587): Remove
939+
# `GONOSUMDB` once this bug is fixed.
940+
run: GONOSUMDB=github.com/mikefarah/yq/v4 go install github.com/mikefarah/yq/v4@v4.44.1
935941
- name: Install ripgrep
936942
run: |
937943
sudo apt-get update

0 commit comments

Comments
 (0)