Skip to content

Commit 4131891

Browse files
debug: GOMODCACHE
1 parent 56beebf commit 4131891

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.circleci/config.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ commands:
6161
path:
6262
description: Go module cache path
6363
type: string
64-
default: /go/mod/cache
64+
default: /home/circleci/go/pkg/mod
6565
after_download:
6666
description: List of steps to run after downloading go modules
6767
type: steps
@@ -121,25 +121,12 @@ commands:
121121
command: just install
122122
working_directory: rvsol/lib/optimism/packages/contracts-bedrock
123123

124-
setup-environment:
125-
steps:
126-
- run:
127-
name: Create cache dir
128-
command: mkdir -p /go/pkg/mod
129-
- run:
130-
name: Setup GOMODCACHE
131-
command: echo 'export GOMODCACHE=/go/pkg/mod' >> $BASH_ENV
132-
- run:
133-
name: Sanity check go mod cache path
134-
command: test "$(go env GOMODCACHE)" == "/go/pkg/mod" # yes, it's an odd path
135-
136124
jobs:
137125
contracts-bedrock-build:
138126
executor: default
139127
resource_class: xlarge
140128
steps:
141129
- checkout-with-monorepo
142-
- setup-environment
143130
- install-dependencies
144131
- run:
145132
name: Check L1 geth version
@@ -180,7 +167,6 @@ jobs:
180167
executor: default
181168
steps:
182169
- checkout-with-monorepo
183-
- setup-environment
184170
- install-dependencies
185171
- install-go-modules:
186172
from: rvsol/lib/optimism/go.sum
@@ -206,14 +192,12 @@ jobs:
206192
steps:
207193
- checkout
208194
- install-dependencies
209-
- setup-environment
210195
- install-go-modules
211196

212197
op-program-riscv:
213198
executor: default
214199
steps:
215200
- checkout-with-monorepo
216-
- setup-environment
217201
- install-dependencies
218202
- install-go-modules:
219203
from: rvsol/lib/optimism/go.sum
@@ -236,7 +220,6 @@ jobs:
236220
- checkout
237221
- attach_workspace:
238222
at: /tmp/workspace
239-
- setup-environment
240223
- install-dependencies
241224
- install-go-modules
242225
- run:
@@ -349,7 +332,6 @@ jobs:
349332
- attach_workspace:
350333
at: /tmp/workspace
351334
- checkout-with-monorepo
352-
- setup-environment
353335
- install-dependencies
354336
- install-go-modules:
355337
from: rvsol/lib/optimism/go.sum

0 commit comments

Comments
 (0)