Skip to content

Commit

Permalink
FAB-1948: Allow users to provide GOPATH from CLI
Browse files Browse the repository at this point in the history
Add the ability to change the GOPATH from while deploying
the sample chaincode

ex: GOPATH=<gopath> node deploy.js

Change-Id: I47848be20c173143955583b64526d989cc0a4658
Signed-off-by: Ratnakar <[email protected]>
  • Loading branch information
asararatnakar committed Jan 30, 2017
1 parent 3add8f6 commit 90d8d42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/balance-transfer/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ var client = new hfc();
var chain;
var eventhub;
var tx_id = null;
process.env.GOPATH = config.goPath;

if (!process.env.GOPATH){
process.env.GOPATH = config.goPath;
}

init();

Expand Down

0 comments on commit 90d8d42

Please sign in to comment.