IBM-Blockchain-Starter-Kit / chaincode-bootstrap

https://ibm-blockchain-starter-kit.github.io/
Apache License 2.0
3 stars 11 forks source link

go chaincode should not be under a src directory #19

Closed jt-nti closed 6 years ago

jt-nti commented 6 years ago

Looking at the hyperledger fabric tutorial and samples, and the How to Write Go Code tutorial it seems like this bootstrap repository shouldn't have its own src directory.

This repository should be under a src directory in a go workspace:

The src subdirectory typically contains multiple version control repositories (such as for Git or Mercurial) that track the development of one or more source packages.

jorgedr94 commented 6 years ago

@jt-nti In the context of the pipeline we install and setup the go workspace. The src directory in the bootstrap code becomes the src directory of the go workspace. So I think we have the right setup here. If we hadn't we would not even be able to compile go because the go command is quite picky about that structure.