Skip to content

Commit

Permalink
.github/workflows, playbooks: Unbreak 'go mod download'
Browse files Browse the repository at this point in the history
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

#1611
  • Loading branch information
debarshiray committed Jan 23, 2025
1 parent 4b61032 commit 8b62d7e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions playbooks/dependencies-centos-9-stream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 2 additions & 0 deletions playbooks/dependencies-fedora-restricted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 2 additions & 0 deletions playbooks/dependencies-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 8b62d7e

Please sign in to comment.