Use spf13/cobra for docker import#23269
Conversation
|
Hum… there is a weird error on |
There was a problem hiding this comment.
min args is set to 1, but it looks like this assumes 2.
I think this needs if len(args) > 1
93de9af to
54575ed
Compare
|
Hum, so /cc @dnephin |
|
hmm, I'll look into it later today. Might be a bug in https://github.com/dnephin/cobra/blob/fork/command.go#L355-L393 |
|
@dnephin yeah I was looking into that. Note that it's just the "args" passed on the |
ea61385 to
7622fbf
Compare
|
@vdemeester I pushed a fix for this. If you update the vendor to 3bfe23ade4a4657b00fb065297461ee282dfb822 it should work correctly. The fix is here: spf13/cobra@c76d2fa |
|
@dnephin are you sure on the hash, it removes the |
|
hmm, it shouldn't remove anything. Try This should be right: https://github.com/dnephin/cobra/commits/fork |
7622fbf to
52d2c26
Compare
52d2c26 to
040e6eb
Compare
|
ping @vdemeester this needs a rebase now 😢 |
Signed-off-by: Vincent Demeester <[email protected]>
Signed-off-by: Vincent Demeester <[email protected]>
Signed-off-by: Vincent Demeester <[email protected]>
660f875 to
7878705
Compare
|
LGTM |
|
|
||
| # cli | ||
| clone git github.com/spf13/cobra acf60156558542e78c6f3695f74b0f871614ff55 https://github.com/dnephin/cobra.git | ||
| clone git github.com/spf13/cobra 75205f23b3ea70dc7ae5e900d074e010c23c37e9 https://github.com/dnephin/cobra.git |
There was a problem hiding this comment.
should we put this fork under the "docker" organization if we're unsure our changes get accepted before 1.12?
There was a problem hiding this comment.
That would be fine with me. There seems to be very little activity on my PRs, so I think it's unlikely they will be merged before 1.12.
|
LGTM, thanks! |
At the time the pull request: Use spf13/cobra for docker rename moby#23290 was created, there was an issue in cobra so the test `DockerSuite.TestRenameInvalidName` was updated. Now the issue in cobra has been fixed in: Use spf13/cobra for docker import moby#23269 so the test related to `docker rename` (`DockerSuite.TestRenameInvalidName`) needs to be reverted back. This fix is related to spf13/cobra moby#23211. Signed-off-by: Yong Tang <[email protected]>
Use spf13/cobra for docker import
Moves import command to
api/client/image/import.goand use cobra 🐍./cc @dnephin @thaJeztah @LK4D4 @cpuguy83
🐸
Signed-off-by: Vincent Demeester [email protected]