You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
When packaging a Java-based Hyperledger Smart Contract, all files are included from the project despite entries in the .fabricignore file. This causes the package to become unnecessarily large (in my particular case, rendering it unusable due to timeouts)
Expected Behavior
The package should not contain files/folders listed in .fabricignore
Actual Behavior
The package contains all files in the project directory with no regard or respect for .fabricignore. For example, .fabricignore has the line /.gradle/ but the Package info clearly lists several files including [11/9/2022 9:49:20 AM] [INFO] - src/.gradle/5.6.2/executionHistory/executionHistory.lock
Possible Fix
Based on the CHANGELOG and the lack of direct reference to the .fabricignore file, I respect that this might not technically be the purview of the extension, but of an underlying library in use...perhaps this needs to be explicitly stated when the library is invoked?
Steps to reproduce
Create a directory on disk (e.g. "bug-example")
In VS Code IBM Blockchain Platform Extension, under Smart Contracts, select Create new Project
Default Contract, Java, MyAsset, browse to the directory created and select it, Open in new window
Observe that many default files and folders have been created
/bug-example$ ls -R
.:
bin build.gradle gradle gradlew gradlew.bat settings.gradle src transaction_data
./bin:
main test
./bin/main:
org
./bin/main/org:
example
./bin/main/org/example:
MyAsset.class MyAssetContract.class
./bin/test:
org
./bin/test/org:
example
./bin/test/org/example:
'MyAssetContractTest$AssetCreates.class' 'MyAssetContractTest$AssetExists.class' 'MyAssetContractTest$AssetUpdates.class' MyAssetContractTest.class
./gradle:
wrapper
./gradle/wrapper:
gradle-wrapper.jar gradle-wrapper.properties
./src:
main test
./src/main:
java
./src/main/java:
org
./src/main/java/org:
example
./src/main/java/org/example:
MyAssetContract.java MyAsset.java
./src/test:
java
./src/test/java:
org
./src/test/java/org:
example
./src/test/java/org/example:
MyAssetContractTest.java
./transaction_data:
my-asset-transactions.txdata
Observe that a file has been created in the root called .fabricignore whose contents are
When packaging a Java-based Hyperledger Smart Contract, all files are included from the project despite entries in the .fabricignore file. This causes the package to become unnecessarily large (in my particular case, rendering it unusable due to timeouts)
Expected Behavior
The package should not contain files/folders listed in .fabricignore
Actual Behavior
The package contains all files in the project directory with no regard or respect for .fabricignore. For example, .fabricignore has the line
/.gradle/
but the Package info clearly lists several files including[11/9/2022 9:49:20 AM] [INFO] - src/.gradle/5.6.2/executionHistory/executionHistory.lock
Possible Fix
Based on the CHANGELOG and the lack of direct reference to the .fabricignore file, I respect that this might not technically be the purview of the extension, but of an underlying library in use...perhaps this needs to be explicitly stated when the library is invoked?
Steps to reproduce
Existing issues
I checked, but didn't find any
Log File
5-Blockchain.log
Your Environment
The text was updated successfully, but these errors were encountered: