@@ -62,13 +62,6 @@ commands:
62
62
name : Install pnpm
63
63
command : sudo npm install -g pnpm
64
64
65
- update-npm :
66
- steps :
67
- - run :
68
- name : Update globally available npm to the latest version
69
- # Note: We need npm >= 8.3 which supports 'overrides' in package.json
70
- command : sudo npm update npm --location=global
71
-
72
65
install-dependencies :
73
66
parameters :
74
67
cache-id :
@@ -85,22 +78,22 @@ commands:
85
78
steps :
86
79
- restore_cache :
87
80
name : " Restoring <<parameters.cache-id>> cache"
88
- key : <<parameters.cache-id>>-dependency-cache-v4 -{{ .Environment.CIRCLE_JOB }}-{{ checksum "<<parameters.path>>/<<parameters.dependency-file>>" }}
81
+ key : <<parameters.cache-id>>-dependency-cache-v5 -{{ .Environment.CIRCLE_JOB }}-{{ checksum "<<parameters.path>>/<<parameters.dependency-file>>" }}
89
82
- run :
90
83
name : " <<parameters.package-manager>> install in <<parameters.path>>"
91
84
command : |
92
85
cd "<<parameters.path>>"
93
86
if [[ ! -e node_modules/ ]]; then
94
87
if [[ "<<parameters.package-manager>>" == "pnpm" ]]; then
95
88
# Create a flat node_modules without symlinks. Same as the node_modules created by npm or Yarn.
96
- <<parameters.package-manager>> install --node-linker=hoisted
89
+ <<parameters.package-manager>> install --no-frozen-lockfile -- node-linker=hoisted
97
90
else
98
91
<<parameters.package-manager>> install
99
92
fi
100
93
fi
101
94
- save_cache :
102
95
name : " Saving <<parameters.cache-id>> cache"
103
- key : <<parameters.cache-id>>-dependency-cache-v4 -{{ .Environment.CIRCLE_JOB }}-{{ checksum "<<parameters.path>>/<<parameters.dependency-file>>" }}
96
+ key : <<parameters.cache-id>>-dependency-cache-v5 -{{ .Environment.CIRCLE_JOB }}-{{ checksum "<<parameters.path>>/<<parameters.dependency-file>>" }}
104
97
paths :
105
98
- " <<parameters.path>>/node_modules/"
106
99
@@ -134,7 +127,7 @@ commands:
134
127
if [[ "<<parameters.package-manager>>" == "pnpm" ]]; then
135
128
<<parameters.package-manager>> install --no-frozen-lockfile --node-linker=hoisted
136
129
else
137
- <<parameters.package-manager>> install --no-frozen-lockfile
130
+ <<parameters.package-manager>> install
138
131
fi
139
132
- run :
140
133
name : " Sanity check: all transitive dependencies successfully replaced with the tarball"
@@ -276,7 +269,7 @@ jobs:
276
269
# The install command is required again here to create the correct symlinks under the hardhat-core/node_modules
277
270
# In our case that is something like: solc -> ../../../node_modules/.pnpm/file+..+solc-js.tgz/node_modules/solc
278
271
# See: https://pnpm.io/symlinked-node-modules-structure
279
- pnpm install
272
+ pnpm install --no-frozen-lockfile
280
273
# TODO: temporarily set hardhat stack traces tests to use cancun hardfork
281
274
# Remove this when hardhat switch to cancun by default: https://github.com/NomicFoundation/hardhat/issues/4851
282
275
sed -i 's/hardfork: "shanghai",/hardfork: "cancun",/' test/internal/hardhat-network/stack-traces/execution.ts
@@ -300,7 +293,7 @@ jobs:
300
293
export HARDHAT_TESTS_SOLC_PATH HARDHAT_TESTS_SOLC_VERSION
301
294
302
295
cd packages/hardhat-core/
303
- pnpm install
296
+ pnpm install --no-frozen-lockfile
304
297
# TODO: temporarily set hardhat stack traces tests to use cancun hardfork
305
298
# Remove this when hardhat switch to cancun by default: https://github.com/NomicFoundation/hardhat/issues/4851
306
299
sed -i 's/hardfork: "shanghai",/hardfork: "cancun",/' test/internal/hardhat-network/stack-traces/execution.ts
0 commit comments