ci: Remove restore_cache

As of go1.13 it is faster to download dependencies from the module
proxy service, than to download a cached /go/pkg/mod
This commit is contained in:
Daniel Nephin 2020-03-11 15:50:42 -04:00
parent 709932f088
commit 3cfe1c1943
1 changed files with 0 additions and 36 deletions

View File

@ -39,15 +39,8 @@ jobs:
- image: *GOLANG_IMAGE - image: *GOLANG_IMAGE
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- run: - run:
command: go mod download command: go mod download
- save_cache:
key: consul-modcache-v1-{{ checksum "go.mod" }}
paths:
- /go/pkg/mod
- run: - run:
name: check go fmt name: check go fmt
command: | command: |
@ -73,15 +66,8 @@ jobs:
<<: *ENVIRONMENT <<: *ENVIRONMENT
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- run: - run:
command: make update-vendor command: make update-vendor
- save_cache:
key: consul-modcache-v1-{{ checksum "go.mod" }}
paths:
- /go/pkg/mod
- run: | - run: |
if ! git diff --exit-code; then if ! git diff --exit-code; then
echo "Git directory has vendor changes" echo "Git directory has vendor changes"
@ -99,9 +85,6 @@ jobs:
GOMAXPROCS: 2 # medium (default) boxes are 2 vCPUs, 4GB RAM https://circleci.com/docs/2.0/configuration-reference/#docker-executor GOMAXPROCS: 2 # medium (default) boxes are 2 vCPUs, 4GB RAM https://circleci.com/docs/2.0/configuration-reference/#docker-executor
steps: steps:
- checkout - checkout
- restore_cache: # restore cache from earlier job
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- attach_workspace: - attach_workspace:
at: /go/bin at: /go/bin
- run: mkdir -p $TEST_RESULTS_DIR - run: mkdir -p $TEST_RESULTS_DIR
@ -133,9 +116,6 @@ jobs:
GOTAGS: "" # No tags for OSS but there are for enterprise GOTAGS: "" # No tags for OSS but there are for enterprise
steps: steps:
- checkout - checkout
- restore_cache: # restore cache from dev-build job
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- attach_workspace: - attach_workspace:
at: /go/bin at: /go/bin
- run: mkdir -p $TEST_RESULTS_DIR - run: mkdir -p $TEST_RESULTS_DIR
@ -165,9 +145,6 @@ jobs:
GOTAGS: "" # No tags for OSS but there are for enterprise GOTAGS: "" # No tags for OSS but there are for enterprise
steps: steps:
- checkout - checkout
- restore_cache: # restore cache from dev-build job
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- attach_workspace: - attach_workspace:
at: /go/bin at: /go/bin
- run: mkdir -p $TEST_RESULTS_DIR - run: mkdir -p $TEST_RESULTS_DIR
@ -219,9 +196,6 @@ jobs:
<<: *ENVIRONMENT <<: *ENVIRONMENT
steps: steps:
- checkout - checkout
- restore_cache: # restore cache from dev-build job
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- run: ./build-support/scripts/build-local.sh - run: ./build-support/scripts/build-local.sh
# save dev build to CircleCI # save dev build to CircleCI
@ -283,15 +257,8 @@ jobs:
<<: *ENVIRONMENT <<: *ENVIRONMENT
steps: steps:
- checkout - checkout
- restore_cache:
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
- run: - run:
command: make dev command: make dev
- save_cache:
key: consul-modcache-v1-{{ checksum "go.mod" }}
paths:
- /go/pkg/mod
# save dev build to pass to downstream jobs # save dev build to pass to downstream jobs
- persist_to_workspace: - persist_to_workspace:
@ -618,9 +585,6 @@ jobs:
- run: mkdir -p $TEST_RESULTS_DIR - run: mkdir -p $TEST_RESULTS_DIR
# Gather deps to run go tests # Gather deps to run go tests
- checkout - checkout
- restore_cache:
keys:
- consul-modcache-v1-{{ checksum "go.mod" }}
# Run go tests # Run go tests
- run: make test-vault-ca-provider - run: make test-vault-ca-provider
- store_test_results: - store_test_results: