Skip to content

Commit

Permalink
Backport of GOPATH is being set incorrectly in latest CircleCI machin…
Browse files Browse the repository at this point in the history
…e image into release/1.8.x (#15291)

* backport of commit b6ea75f

* backport of commit 0bf0f09

Co-authored-by: Christopher Swenson <christopher.swenson@hashicorp.com>
  • Loading branch information
hc-github-team-secure-vault-core and Christopher Swenson committed May 4, 2022
1 parent 8654831 commit 9261fff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
20 changes: 11 additions & 9 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions .circleci/config/commands/@caches.yml
Expand Up @@ -18,9 +18,9 @@ restore_go_mod_cache_permissive:
- restore_cache:
name: Restore closest matching go modules cache
keys:
- &gocachekey v1.4-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}-{{checksum "api/go.sum"}}
- v1.4-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}
- v1.4-{{checksum "go.sum"}}
- &gocachekey v1.5-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}-{{checksum "api/go.sum"}}
- v1.5-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}
- v1.5-{{checksum "go.sum"}}
restore_go_mod_cache:
steps:
- restore_cache:
Expand All @@ -40,6 +40,8 @@ refresh_go_mod_cache:
- run:
name: go mod download
command: |
# set GOPATH explicitly to download to the right cache
export GOPATH=$HOME/go
# go list ./... forces downloading some additional versions of modules that 'go mod
# download' misses. We need this because we make use of go list itself during
# code generation in later builds that rely on this module cache.
Expand Down

0 comments on commit 9261fff

Please sign in to comment.