.github/workflows, playbooks: Unbreak 'go mod download'

Currently, the CI is failing because 'go mod download' is encountering an
expired TLS certificate:
  $ go mod download
  go: github.com/spf13/viper@v1.10.1 requires
      go.opencensus.io@v0.23.0: unrecognized import path "go.opencensus.io":
        https fetch: Get "https://go.opencensus.io/?go-get=1": tls: failed to
        verify certificate: x509: certificate has expired or is not yet valid:
        current time 2025-01-23T17:00:16+01:00 is after 2025-01-21T03:43:04Z

Therefore, disable the TLS certificate check until the certificate gets
updated or the dependency gets removed [1].

[1] https://pkg.go.dev/cmd/go#hdr-Environment_variables

https://github.com/containers/toolbox/pull/1611
This commit is contained in:
Debarshi Ray 2025-01-23 17:29:16 +01:00
parent 4b61032711
commit 8b62d7e95d
4 changed files with 8 additions and 0 deletions

View File

@ -126,6 +126,8 @@ jobs:
- name: Download Go modules
run: go mod download -x
env:
GOINSECURE: go.opencensus.io
working-directory: containers/toolbox/src
- name: Set up build directory

View File

@ -40,6 +40,8 @@
- name: Download Go modules
command: go mod download -x
environment:
GOINSECURE: go.opencensus.io
args:
chdir: '{{ zuul.project.src_dir }}/src'

View File

@ -67,6 +67,8 @@
- name: Download Go modules
command: go mod download -x
environment:
GOINSECURE: go.opencensus.io
args:
chdir: '{{ zuul.project.src_dir }}/src'

View File

@ -41,6 +41,8 @@
- name: Download Go modules
command: go mod download -x
environment:
GOINSECURE: go.opencensus.io
args:
chdir: '{{ zuul.project.src_dir }}/src'