Skip to content

Commit

Permalink
FAB-16166 Standardize _lifecycle code package name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Yellick authored and bestbeforetoday committed Aug 2, 2019
1 parent 376837e commit 082ba50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public static LifecycleChaincodePackage fromSource(String label, Path chaincodeS
archiveOutputStream.write(mataDataBytes);
archiveOutputStream.closeArchiveEntry();

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

0 comments on commit 082ba50

Please sign in to comment.