Skip to content

Expand and resolve host path correctly in copy - #1743

Closed
JaewonHur wants to merge 2 commits into
apple:mainfrom
JaewonHur:fix-copy
Closed

JaewonHur wants to merge 2 commits into
apple:mainfrom
JaewonHur:fix-copy

Conversation

@JaewonHur

@JaewonHur JaewonHur commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Expand and resolve host path correctly

Resolves #1738.

  • Fix container copy to resolve host path when relative path is given.
  • Print destination path on successful copying. However, this is a bit
    incorrect when "container cp foo bar:/baz" where baz is directory. In
    that case, resulting object will be "bar:/baz/foo", however we don't
    know "/baz" is directory or not in CLI side, so we have no way to get
    the destination path correctly without more information from runtime.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

* Fix container copy to resolve host path when relative path is given.
* Print destination path on successful copying. However, this is a bit
  incorrect when "container cp foo bar:/baz" where baz is directory. In
  that case, resulting object will be "bar:/baz/foo", however we don't
  know "/baz" is directory or not in CLI side, so we have no way to get
  the destination path correctly without more information from runtime.
@JaewonHur JaewonHur changed the title Fix copy Expand and resolve host path correctly in copy Jun 17, 2026
@github-actions github-actions Bot added the facet/cli Work related to generic or cross-cutting CLI features label Jun 17, 2026
@JaewonHur JaewonHur closed this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

facet/cli Work related to generic or cross-cutting CLI features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Container copy doesn't expand host path correctly.

1 participant