Skip to content

fix(scripts): resolve package ID calculation path error when CC_PACKAGE_ONLY is true - #1440

Open
eshaanag wants to merge 1 commit into
hyperledger:mainfrom
eshaanag:fix/1404-package-cc-only-path
Open

eshaanag wants to merge 1 commit into
hyperledger:mainfrom
eshaanag:fix/1404-package-cc-only-path

Conversation

@eshaanag

Copy link
Copy Markdown

Description

When CC_PACKAGE_ONLY is set to true, packageCC.sh creates the chaincode package at packagedChaincode/${CC_NAME}_${CC_VERSION}.tar.gz. However, the script previously attempted to calculate the Package ID using ${CC_NAME}.tar.gz in the root directory, causing the command to fail with a file not found error.

This PR updates packageChaincode() to check if CC_PACKAGE_ONLY is set to true and calculate the package ID using the correct filepath.

Fixes #1404

…GE_ONLY is true

Signed-off-by: Eshaan Agrawal <agrawaleshaan12@gmail.com>
@eshaanag
eshaanag requested a review from a team as a code owner August 20, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: packageCC.sh fails to calculate Package ID when CC_PACKAGE_ONLY is true

1 participant