Use spf13/cobra for docker tag#23278
Conversation
There was a problem hiding this comment.
Thanks @vdemeester the pull request has been updated with [OPTIONS] removed.
31d5515 to
62f1fda
Compare
There was a problem hiding this comment.
I don't think we should remove these tests. I think we can fix the behaviour.
If you check out run, I use flags.SetInterspersed(false) in the NewRunCommand(). This will making it stop looking for flags once it finds the first non-flag arg.
Once that' s done we should get the -busybox:test arg as an arg, instead of failing flag validation, which should let us get the old error message out.
There was a problem hiding this comment.
Thanks @dnephin. Let me update the pull request to address this issue.
62f1fda to
02fca22
Compare
|
Thanks @dnephin. I added After some investigation, it seems that to in Now the command behaves as expected. Just want to make sure there is no unintended side effect with this change. |
|
I fixed it in cobra, and @vdemeester should be picking up the fix in one of the PRs, if you want to keep that change for now, maybe add a TODO saying it should be fixed in cobra? |
02fca22 to
c1ca169
Compare
|
@dnephin I just added a |
|
Updated in #23269 😉 |
|
Oh, sorry @yongtang this one needs a rebase as well |
c1ca169 to
607d528
Compare
|
Thanks @vdemeester I will keep an eye on #23269 and remove |
607d528 to
1ad8f73
Compare
|
The pull request has been rebased. It is likely there is a failing test. The failure is caused by an issue in cobra, which has been fixed (not yet merged into the docker yet). Once #23269 is merged the the failure will be fixed. |
1ad8f73 to
ed658f1
Compare
|
Thanks @thaJeztah the PR has been rebased and fixed. |
This fix is part of the effort to convert commands to spf13/cobra moby#23211. Thif fix coverted command `docker tag` to use spf13/cobra Signed-off-by: Yong Tang <[email protected]>
ed658f1 to
ba7324f
Compare
|
LGTM |
1 similar comment
|
LGTM |
|
LGTM 🐵 |
|
All green! Merging |
This fix is part of the effort to convert commands to spf13/cobra #23211.
Thif fix coverted command
docker tagto use spf13/cobraSigned-off-by: Yong Tang [email protected]