Skip to content

Commit

Permalink
test(connector-fabric): fix v1.4.8 golang chaincode test
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
petermetz committed Jun 21, 2021
1 parent 6fbdca8 commit 526c4fb
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ test(testCase, async (t: Test) => {
});
const ledger = new FabricTestLedgerV1({
emitContainerLogs: true,
logLevel,
publishAllPorts: true,
// imageName: "faio14x",
// imageVersion: "latest",
Expand Down Expand Up @@ -179,8 +180,26 @@ test(testCase, async (t: Test) => {
moduleName: "hello-world",
targetOrganizations: [org1Env, org2Env],
pinnedDeps: [
"github.com/Knetic/[email protected]+incompatible",
"github.com/Shopify/[email protected]",
"github.com/fsouza/[email protected]",
"github.com/grpc-ecosystem/[email protected]",
"github.com/hashicorp/[email protected]",
"github.com/hyperledger/[email protected]",
"github.com/hyperledger/[email protected]",
"github.com/miekg/[email protected]",
"github.com/mitchellh/[email protected]",
"github.com/onsi/[email protected]",
"github.com/onsi/[email protected]",
"github.com/op/[email protected]",
"github.com/pkg/[email protected]",
"github.com/spf13/[email protected]",
"github.com/stretchr/[email protected]",
"github.com/sykesm/[email protected]",
"go.uber.org/[email protected]",
"golang.org/x/[email protected]",
"golang.org/x/[email protected]",
"google.golang.org/[email protected]",
],
});

Expand Down

0 comments on commit 526c4fb

Please sign in to comment.