Skip to content

Commit 78f708f

Browse files
committed
test(connector-fabric): fix v1.4.8 golang chaincode test
Pinned all the hello world chaincode's dependencies to exact versions that are known to have worked in the past for builds. We needed this because the 1.13 go version of the Fabric CLI container could no longer build (tidy+vendor) the dependencies that were built with the newer versions of go such as 1.16 and 1.17. More info about the root cause can be read here: golang/go#40067 By locking the dependencies versions to older ones we we ensured that the older go installation of the Fabric CLI container does not fail. The known-to-be-working dependency versions are coming from packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/fixtures/go/hello-world-contract-fabric-v14/hello-world-contract-go-mod.ts Signed-off-by: Peter Somogyvari <[email protected]>
1 parent 6fbdca8 commit 78f708f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v1-4-x/deploy-cc-from-golang-source.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ test(testCase, async (t: Test) => {
5555
});
5656
const ledger = new FabricTestLedgerV1({
5757
emitContainerLogs: true,
58+
logLevel,
5859
publishAllPorts: true,
5960
// imageName: "faio14x",
6061
// imageVersion: "latest",
@@ -179,8 +180,26 @@ test(testCase, async (t: Test) => {
179180
moduleName: "hello-world",
180181
targetOrganizations: [org1Env, org2Env],
181182
pinnedDeps: [
183+
"github.com/Knetic/[email protected]+incompatible",
184+
"github.com/Shopify/[email protected]",
185+
"github.com/fsouza/[email protected]",
186+
"github.com/grpc-ecosystem/[email protected]",
187+
"github.com/hashicorp/[email protected]",
182188
"github.com/hyperledger/[email protected]",
189+
"github.com/hyperledger/[email protected]",
190+
"github.com/miekg/[email protected]",
191+
"github.com/mitchellh/[email protected]",
192+
"github.com/onsi/[email protected]",
193+
"github.com/onsi/[email protected]",
194+
"github.com/op/[email protected]",
195+
"github.com/pkg/[email protected]",
196+
"github.com/spf13/[email protected]",
197+
"github.com/stretchr/[email protected]",
198+
"github.com/sykesm/[email protected]",
199+
"go.uber.org/[email protected]",
200+
"golang.org/x/[email protected]",
183201
"golang.org/x/[email protected]",
202+
"google.golang.org/[email protected]",
184203
],
185204
});
186205

0 commit comments

Comments
 (0)