Skip to content

Commit

Permalink
[WIP] Fix release for packages without indexes
Browse files Browse the repository at this point in the history
Resolves #115

Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti committed Apr 30, 2024
1 parent 31ac3e6 commit 803f94a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/release/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var _ = Describe("Main", func() {
Eventually(session).Should(gexec.Exit(expectedErrorCode))
},
Entry("When there is no chaincode metadata", 0, func() []string {
return []string{"BUILD_OUTPUT_DIR", "RELEASE_OUTPUT_DIR"}
return []string{"./testdata/buildwithoutindexes", "RELEASE_OUTPUT_DIR"}
}),
Entry("When there is chaincode metadata", 0, func() []string {
return []string{"./testdata/buildwithindexes", tempDir}
Expand Down
4 changes: 4 additions & 0 deletions cmd/release/testdata/buildwithindexes/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ghcr.io/hyperledger/asset-transfer-basic",
"digest": "sha256:b35962f000d26ad046d4102f22d70a1351692fc69a9ddead89dfa13aefb942a7"
}
4 changes: 4 additions & 0 deletions cmd/release/testdata/buildwithoutindexes/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ghcr.io/hyperledger/asset-transfer-basic",
"digest": "sha256:b35962f000d26ad046d4102f22d70a1351692fc69a9ddead89dfa13aefb942a7"
}

0 comments on commit 803f94a

Please sign in to comment.