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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker invalid-subcommand regression #1429

Merged
merged 1 commit into from Oct 24, 2018

Conversation

AkihiroSuda
Copy link
Collaborator

@AkihiroSuda AkihiroSuda commented Oct 10, 2018

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp

- What I did

Starting with a3fe7d6 (#1069),
docker invalid-subcommand did not exit with non-zero status.

Fix #1428

- How I did it

Restored RunE

- How to verify it

$ docker invalid-subcommand
docker: 'invalid-subcommand' is not a docker command.
See 'docker --help'
$ echo $?
1

- Description for the changelog

Fix docker invalid-subcommand regression

- A picture of a cute animal (not mandatory but encouraged)
馃惂

Starting with a3fe7d6,
`docker invalid-subcommand` did not exit with non-zero status.

Fix docker#1428

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
@codecov-io
Copy link

Codecov Report

Merging #1429 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #1429      +/-   ##
==========================================
+ Coverage   54.22%   54.23%   +<.01%     
==========================================
  Files         289      289              
  Lines       19359    19362       +3     
==========================================
+ Hits        10498    10501       +3     
+ Misses       8185     8183       -2     
- Partials      676      678       +2

@thaJeztah
Copy link
Member

@AkihiroSuda wondering if we should have a fix for this upstream in cobra

@thaJeztah
Copy link
Member

Oh, actually, I see it's on our side

@AkihiroSuda
Copy link
Collaborator Author

@thaJeztah @cpuguy83 PTAL?

Copy link
Collaborator

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 馃惎

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

whoops, thought I LGTM'd already 馃槉

@thaJeztah thaJeztah merged commit 15e40e7 into docker:master Oct 24, 2018
@GordonTheTurtle GordonTheTurtle added this to the 19.03.0 milestone Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[regression in v18.06] Unknown top-level command should fail with non-zero exit code
6 participants