-
Notifications
You must be signed in to change notification settings - Fork 445
feat: addpkg command respects gno.mod file #922
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
Conversation
43104e0 to
1dd9130
Compare
|
@harry-hov do you think the same behavior should be applied for |
Yeah. I planned to do this in #682. But now I will open a separate PR for that. That will act as a preparatory PR for both #896 and #682. (maybe by tomorrow) |
tm2/pkg/crypto/keys/client/addpkg.go
Outdated
| if cfg.pkgPath == "" { | ||
| return errors.New("pkgpath not specified") | ||
| } |
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.
we can make the migration smoother by just adding a warning here with a comment to remove later.
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.
sorry. i didn't get it. what kind of warning?
I think we should also maintain a CHANGELOG and LongHelp?
tm2/pkg/crypto/keys/client/addpkg.go
Outdated
| "path/filepath" | ||
|
|
||
| gno "github.com/gnolang/gno/gnovm/pkg/gnolang" | ||
| "github.com/gnolang/gno/gnovm/pkg/gnomod" |
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.
This one is forbidden.
Maybe we should wait for TM2 split PR started by @piux2, then you'll have the AddPkg not in tm2 anymore, but in gno.land.
@harry-hov, what about trying to help @piux2 finishing his PR first?
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.
tm2 already imports gnovm[github.com/gnolang/gno/gnovm](see the line above).
maybe we can let this one slide and will be fixed with TM2 split?
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.
the split is finalised so the problematic import can be fixed, please merge master :)
1b19dd8 to
c3acd88
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
697ef52 to
23ccecf
Compare
thehowl
left a comment
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.
Catching up on old items in the queue. Sorry for the delay.
The changes LGTM though I personally think it would be better to have pkgpath still be a flag, which defaults to the value in gno.mod if not set.
My rationale: gnokey is primarily a tool to interact with the gno.land blockchain, and while gno.mod is a very important tool in local development, it is not essential to publish a package. So, in the way I see it, gnokey should essentially be the bare tool to create a transaction, with sane defaults like this one, but without asserting that gno.mod is a requirement.
What do you think?
Sorry for the delay in reply as well.
I agree 💯 (but...)
My vision is to make gno.mod more inclusive. Let's take an example of the versioning PR #1631, which will also make |
|
@harry-hov |
|
@zivkovicmilos last I remember, it was ready for review. Seems like now i need to fix merge conflicts. Will do this soon! |
a4260fc to
d14ea00
Compare
d14ea00 to
e71b88f
Compare
BREAKING CHANGE: removed flag
-pkgPathfromaddpkgcommandSince PR #763 we are parsing pkg path from
gno.modfile while auto loading pkgs from /examples dir.Replicate the same behavior for
gnokey maketx addpkg ...Contributors' checklist...
BREAKING CHANGE: xxxmessage was included in the description