Skip to content
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

cli: accept snap file in legacy upload-metadata command #3975

Merged
merged 3 commits into from Nov 21, 2022

Conversation

merlijn-sebrechts
Copy link
Contributor

@merlijn-sebrechts merlijn-sebrechts commented Nov 7, 2022

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint?
  • Have you successfully run pytest tests/unit?

fxes: https://bugs.launchpad.net/snapcraft/+bug/1995857

The legacy upload-metadata command didn't have a location argument for the snap file itself. This PR adds that argument, and fixes some issues with the hacking doc and environment setup.

$snapcraft upload-metadata signal-desktop_5.57.0_amd64-core18.snap
Usage: snapcraft [options] command [args]...
Try 'snapcraft upload-metadata -h' for help.

Error: unrecognized arguments: signal-desktop_5.57.0_amd64-core18.snap

The legacy upload-metadata command didn't have a location argument
for the snap file itself. This commit adds that argument
@merlijn-sebrechts merlijn-sebrechts changed the title cli: accept snap file in legacy upload cli: accept snap file in legacy upload-metadata command Nov 7, 2022
@merlijn-sebrechts
Copy link
Contributor Author

What is not clear to me, is why snapcraft push-metadata uses the path via upload.py and snapcraft upload-metadata uses the path via legacy.py.

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2022

Codecov Report

Merging #3975 (0bdb35e) into main (5799b03) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head 0bdb35e differs from pull request most recent head f58b549. Consider uploading reports for the commit f58b549 to get more accurate results

@@            Coverage Diff             @@
##             main    #3975      +/-   ##
==========================================
- Coverage   91.04%   91.02%   -0.03%     
==========================================
  Files          56       56              
  Lines        4086     4087       +1     
==========================================
  Hits         3720     3720              
- Misses        366      367       +1     
Impacted Files Coverage Δ
snapcraft/commands/legacy.py 79.41% <0.00%> (-0.79%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this.
Sorry for the delay.

The reason for the split is moslty due to not having moved this functionality to the new cli

@sergiusens sergiusens merged commit d685a23 into canonical:main Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants