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

resolve flag not working for destination target in oras cp #842

Closed
1 task done
qweeah opened this issue Feb 28, 2023 · 0 comments · Fixed by #843
Closed
1 task done

resolve flag not working for destination target in oras cp #842

qweeah opened this issue Feb 28, 2023 · 0 comments · Fixed by #843
Labels
bug Something isn't working
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Feb 28, 2023

What happened in your environment?

--resolve will not work for the destination target, below command will fail to lookup $TO.

oras cp $FROM:v1 $TO:v1 --resolve $TO:443:127.0.0.1

What did you expect to happen?

Should not lookup $TO and use the customized $TO->127.0.0.1 mapping provided by --resolve.

How can we reproduce it?

Setup $FROM and $TO with registry name and run below command

oras cp $FROM:$TAG $TO:$TAG --resolve $TO:443:$ADDR

What is the version of your ORAS CLI?

Version: 1.0.0-rc.1
Go version: go1.19.5
Git commit: a98931b
Git tree state: clean

What is your OS environment?

ubuntu 20.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.
@qweeah qweeah added the bug Something isn't working label Feb 28, 2023
@shizhMSFT shizhMSFT added this to the v1.0.0-rc.2 milestone Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants