Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 082ba50

Browse files
Jason Yellickbestbeforetoday
authored andcommitted
FAB-16166 Standardize _lifecycle code package name
The name of the code package currently varies by SDK and is not enforced by the peer. This change is an attempt to homogenize the code package naming so that we may enforce and check for a particular name in the package parsing at the peer. Change-Id: I647415d09347580122b42486059c79929380078c Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent 376837e commit 082ba50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/hyperledger/fabric/sdk/LifecycleChaincodePackage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public static LifecycleChaincodePackage fromSource(String label, Path chaincodeS
178178
archiveOutputStream.write(mataDataBytes);
179179
archiveOutputStream.closeArchiveEntry();
180180

181-
archiveEntry = new TarArchiveEntry(chaincodeType.toPackageName().toUpperCase() + "-Code-Package.tar.gz");
181+
archiveEntry = new TarArchiveEntry("code.tar.gz");
182182
archiveEntry.setMode(0100644);
183183
archiveEntry.setSize(dataBytes.length);
184184
archiveOutputStream.putArchiveEntry(archiveEntry);

0 commit comments

Comments
 (0)