Closed jt-nti closed 6 years ago
It looks like the current method being used to deploy the files doesn't allow the code to be structured with directories. All of the files seem to be deployed on the same folder.
For example in this case:
$ tree
.
├── foo
│ └── bar.js
├── main.js
├── package.json
└── start.sh
1 directory, 4 files
main.js:
const bar = require("./foo/bar");
When instantiating we get this error on the logs: Error: Cannot find module './foo/bar'
Uploading a zip file with the correct directory structure seems to work.
We definitely need this as an option on the deployment.
Part of this issue is now being addressed by Pull Request https://github.com/IBM-Blockchain-Starter-Kit/build-lib/pull/84
Will keep this issue opened so that we can enhance the capability by providing a way for the developer to configure the content of the zip file itself.
@jorgedr94 I've opened an issue in the new repo for the follow on work: blockchain-kit/build-lib#6
Closed by #84
It looks like the curl command for /networks/{networkID}/chaincode/install is being called with multiple
-F files[]=@
arguments which could potentially have globbing and word splitting issues.According to the API...
Which would be worth investigating rather than uploading single files.