Skip to content

feat: support --platform for oras attach#1309

Merged
qweeah merged 10 commits into
oras-project:mainfrom
qweeah:attach-platform
Apr 7, 2024
Merged

feat: support --platform for oras attach#1309
qweeah merged 10 commits into
oras-project:mainfrom
qweeah:attach-platform

Conversation

@qweeah

@qweeah qweeah commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR add a feature to allow user do arch-specific attaching from an multi-arch artifact.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #813

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
@codecov

codecov Bot commented Mar 26, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.99%. Comparing base (4d808ac) to head (a9dbf4e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1309      +/-   ##
==========================================
+ Coverage   83.96%   83.99%   +0.03%     
==========================================
  Files          90       90              
  Lines        3448     3455       +7     
==========================================
+ Hits         2895     2902       +7     
  Misses        331      331              
  Partials      222      222              

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

qweeah added 2 commits March 27, 2024 06:17
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

generally looks good, but conflict

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Comment thread cmd/oras/internal/option/platform.go
qweeah added 4 commits April 7, 2024 12:14
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>

@shizhMSFT shizhMSFT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@qweeah qweeah merged commit de4cb15 into oras-project:main Apr 7, 2024
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
Signed-off-by: Billy Zha <jinzha1@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 platform flag to attach command

3 participants