-
Notifications
You must be signed in to change notification settings - Fork 563
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
skopeo-copy task fails with error "Exactly two arguments expected". #1117
Comments
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@piyush-garg: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
/kind bug |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Expected Behavior
skopeo-copy task here properly works without errors
Actual Behavior
skopeo-copy task fails with error
Exactly two arguments expected
when using multiple source and destination image registries.Steps to Reproduce the Problem
url.txt
containing all the source and destination image registries URL seperated by a space. Each set of images should be written in the new line.Additional Info
The problem is the double quotes in
"$cmd"
hereThe reason is that double quotes prevents word splitting and an argument enclosed in double quotes presents itself as a single word, even if it contains whitespace separators. Therefore skopeo gets just one argument and complains with the error message
Exactly two arguments expected
.The solution is to remove the double quotes from
$cmd
parameter. I will open a PR to fix this.The text was updated successfully, but these errors were encountered: