-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first-network/scripts/*: Make Chaincode name configurable #118
Conversation
Signed-off-by: Anoop Vijayan Maniankara <anoop@tuxera.com>
Hello guys, by parameterising the app name, makes this as very good helper/handy for |
Hi @maniankara - Thanks for your input. I would have two comments on this PR
|
Thanks for your explanations @nikhil550.
About this, yes peer command/binary should be used. But if you look at it, due to the nature of the commands and params, it gets very much cumbersome even for an advance user to quickly test/deploy them. So definitely a wrapper/helper on top of those commands are needed. As this is a common problem, it should somehow exist within the Hyperledger umbrella itself. |
@maniankara, @nikhil550 is right in saying that we're moving away from BYFN but your PR looks good to me and I'm happy to merge it. Thank you for your contribution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Did anyone test this, there are multiple regressions in it when running against the default and not specifying your own name (though that also had easily introducible problems). You read the NAME off the third input to installChaincode but didn't update any of the calls to installChaincode, and you don't read the name variable at all in the packageChaincode step or pass it in, and it hasn't been placed in the global namespace. Will need to revert this as all byfn functionality is broken |
@btl5037 @jyellick and others. I feel ashamed that I had pushed partially working commits to here. Now I fixed more things and managed to test this. Now it works well with byfn.sh. I can write some justifications as in 'why' this is needed:
As you see its very handy to use and this is currently missing. Though the recommendation is to use the bare binary like Other approach is to duplicate the scripts from samples all over the users/repositories. I think you get the problem here. |
Just to be clear, its we who are at fault here, our processes should catch problems, completely not your fault. |
Sorry, I casually merged this on my way out without testing, in an effort to welcome a contributor. My bad. |
Signed-off-by: Anoop Vijayan Maniankara anoop@tuxera.com