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

feat: add resolve command #1187

Merged
merged 5 commits into from
Nov 15, 2023
Merged

Conversation

sajayantony
Copy link
Contributor

@sajayantony sajayantony commented Nov 15, 2023

What this PR does / why we need it:

This is an update with a test and flags based of PR from @amands98.
@amands98 if you would like to combine these commits I'm more than happy to send a PR to your branch.

  • Resolve command with support for platform output of fully qualified reference -
❯ oras resolve -l localhost:5000/command/artifacts:multi
localhost:5000/command/artifacts@sha256:e2bfc9cc6a84ec2d7365b5a28c6bc5806b7fa581c9ad7883be955a64e3cc034f
❯ oras resolve  localhost:5000/command/artifacts:multi --platform linux/amd64
sha256:9d84a5716c66a1d1b9c13f8ed157ba7d1edfe7f9b8766728b8a1f25c0d9c14c1
❯ oras digest docker.io/library/hello-world:latest
sha256:88ec0acaa3ec199d3b7eaf73588f4518c25f9d34f58ce9a0df68429c5af48e8d

Fixes #907.

@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d7c71e6) 80.09% compared to head (561eda6) 80.34%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1187      +/-   ##
==========================================
+ Coverage   80.09%   80.34%   +0.25%     
==========================================
  Files          65       66       +1     
  Lines        3572     3618      +46     
==========================================
+ Hits         2861     2907      +46     
  Misses        497      497              
  Partials      214      214              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FeynmanZhou
Copy link
Member

Thanks @sajayantony . Could you associate the original issue #907 with this PR?

cmd/oras/root/resolve.go Outdated Show resolved Hide resolved
cmd/oras/root/resolve.go Outdated Show resolved Hide resolved
amands98 and others added 5 commits November 15, 2023 06:09
…tput

Signed-off-by: amands98 <amandeepsm.in@gmail.com>
Co-authored-by: Billy Zha <qweeah@gmail.com>
Signed-off-by: Aman <136564604+amands98@users.noreply.github.com>
Signed-off-by: Sajay Antony <sajaya@microsoft.com>
Signed-off-by: Sajay Antony <sajaya@microsoft.com>
Co-authored-by: Feynman Zhou <feynman@kubesphere.io>
Co-authored-by: Billy Zha <qweeah@gmail.com>
Signed-off-by: Sajay Antony <sajaya@microsoft.com>
@TerryHowe
Copy link
Member

Closes #907

Copy link
Member

@TerryHowe TerryHowe left a comment

Choose a reason for hiding this comment

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

/lgtm

@sajayantony sajayantony merged commit 01e9cdd into oras-project:main Nov 15, 2023
6 checks passed
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
Signed-off-by: amands98 <amandeepsm.in@gmail.com>
Co-authored-by: Billy Zha <qweeah@gmail.com>
Co-authored-by: Feynman Zhou <feynman@kubesphere.io>
Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>
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.

add command to get the digest of a tagged manifest without parsing output
7 participants