-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat: addpkg command respects gno.mod file #922
base: master
Are you sure you want to change the base?
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
|
||
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #922 +/- ##
=======================================
Coverage 48.81% 48.81%
=======================================
Files 579 579
Lines 78045 78041 -4
=======================================
- Hits 38099 38098 -1
+ Misses 36860 36857 -3
Partials 3086 3086
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
697ef52
to
23ccecf
Compare
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
-pkgPath
fromaddpkg
commandSince PR #763 we are parsing pkg path from
gno.mod
file while auto loading pkgs from /examples dir.Replicate the same behavior for
gnokey maketx addpkg ...
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description