Commit ff985ef
authored
Re-add platform-specific packages for CI (#960)
some packages need to be re-installed on the target machine so that they
get the correct implementation.
In package-lock.json, we might have arm-version of
@nomicfoundation/solidity-analyzer, so that gets installed in CI machine
too. However, that machine needs the linux-x64-gnu version of the
package. This is fixed by running npm install on those specific
packages.
Specific error in CI, see e.g.
https://github.com/streamr-dev/network-contracts/actions/runs/13110417595/job/36585239309
`HardhatError: HH18: You installed Hardhat with a corrupted lockfile due
to the NPM bug #4828.`
NomicFoundation/hardhat#4937
suggests reason is "misidentifying the platform in
@nomicfoundation/solidity-analyzer"
After adding that package, another error appears: `Error: Cannot find
module 'solidity-comments-linux-x64-gnu'`
After adding that package as well, the run succeeds.1 parent cac8a12 commit ff985ef
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments