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

fix: fix bugs related to the spec --distribution-spec #772

Merged
merged 2 commits into from
Jan 30, 2023

Conversation

Wwwsylvia
Copy link
Member

@Wwwsylvia Wwwsylvia commented Jan 30, 2023

  1. Fix flags --from-distribution-spec and --to-distribution-spec for oras copy
  2. Fix the flag --distribution-spec for oras attach

This PR removes the check when specifying --distribution-spec for OCI layout.

Fixes: #770, #771

Signed-off-by: Sylvia Lei <lixlei@microsoft.com>
Signed-off-by: Sylvia Lei <lixlei@microsoft.com>
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

@shizhMSFT shizhMSFT merged commit d69c286 into oras-project:main Jan 30, 2023
@Wwwsylvia Wwwsylvia deleted the fix_distribution_spec branch January 31, 2023 02:32
TerryHowe pushed a commit to TerryHowe/oras that referenced this pull request Feb 2, 2023
…#772)

Signed-off-by: Sylvia Lei <lixlei@microsoft.com>
@@ -84,13 +83,11 @@ func (opts *Target) Parse() error {
switch {
case opts.isOCILayout:
opts.Type = TargetTypeOCILayout
if opts.Remote.distributionSpec.referrersAPI != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this check cause any bug?

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.

bug: The flag --to-distribution-spec does not work with oras copy
3 participants