Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
go list -json
to build go cc dependencies
Prior to these changes, custom format templates were used to format dependency information as JSON for go chaincode. This did not work on Windows because the backlash path separators were not properly escaped. Using the -json option (instead of the template) results in properly escaped filenames in the structure so we abandon the custom format and use the JSON output to generate our model. Later, when we create the tar that's embedded in the chaincode, we transform the path separators to slashes. FAB-17288 Change-Id: If3e04f5fa4deacb734e94323c9872406f3f6406e Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
- Loading branch information
Showing
3 changed files
with
49 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters