-
Notifications
You must be signed in to change notification settings - Fork 441
fix(gnovm): fix private package re-upload issue (#4871) #4877
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
Fixed incorrect operation order preventing re-upload of edited private packages. Also added a test case for this scenario.
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
mvertes
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.
The general idea is ok, but extra care must be taken to not introduce a vulnerability.
…eset the original check order, use pv instead of gm for first check
|
@thehowl does the test you mention for function and method signatures are already here ? I added the basic tests for private packages by creating I reverted the operations order, and used pv.Private instead of gm.Private. I also added checks that prevents overwriting a public package with a private one and vice-versa, but let me know if you want me to remove that one as private > public may be a wanted feature to have. Also, thanks everyone for the reviews :) |
Co-authored-by: ltzmaxwell <[email protected]>
moul
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.
LGTM, but we need to ensure that private packages cannot persist local objects or types in other realms. This way, replacing a package won't brick another one. I believe @MikaelVallenet handled this. Cc @thehowl.
I did, should be OK |
|
i think #4949 and this PR should be one PR. |
Fixed incorrect operation order preventing re-upload of edited private packages.
Also added a test case for this scenario.