Skip to content

Commit

Permalink
Fix build break (#175)
Browse files Browse the repository at this point in the history
New version of grpc-js required 'fs/promises', which does not exist in
the particular version of Node 12 included in the
hyperledger/fabric-nodeenv:2.2 image. This was fixed in grpc-js v1.12.2.

This change includes npm-shrinkwrap.json files for the Node chaincode
used by tests to avoid any unexpected future dependency version
resolution changes.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday authored Oct 12, 2024
1 parent 259f00c commit fe4e88a
Show file tree
Hide file tree
Showing 6 changed files with 1,645 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/test/fixtures/chaincode/node/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
package-lock.json
817 changes: 817 additions & 0 deletions src/test/fixtures/chaincode/node/fabcar/npm-shrinkwrap.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/test/fixtures/chaincode/node/fabcar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": "Hyperledger",
"license": "Apache-2.0",
"dependencies": {
"fabric-contract-api": "~2.2",
"fabric-shim": "~2.2"
"fabric-contract-api": "~2.2.0",
"fabric-shim": "~2.2.0"
}
}
Loading

0 comments on commit fe4e88a

Please sign in to comment.