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

add document for escaping file references in oras CLI #134

Closed
1 task done
qweeah opened this issue Mar 22, 2023 · 1 comment · Fixed by oras-project/oras#1508
Closed
1 task done

add document for escaping file references in oras CLI #134

qweeah opened this issue Mar 22, 2023 · 1 comment · Fixed by oras-project/oras#1508

Comments

@qweeah
Copy link
Contributor

qweeah commented Mar 22, 2023

Code of Conduct

What part of document/web-page on oras.land is affected?

oras CLI uses colon : as a delimiter of file path and media type in the file reference. If a file reference 1) doesn't contain mediatype and 2) file path contains colon, user should add colon at the end of reference.

# file path: my.file
# media type: file.media.type
oras push $REG/$REPO:$TAG my.file:file.media.type


# file path: my:file
# media type:N/A
oras push $REG/$REPO:$TAG my:file:

Additional comments?

This should be documented in oras.land so oras user can find it.

@TerryHowe
Copy link
Member

Going to close oras-project/oras#734 ?

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 a pull request may close this issue.

2 participants