-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Cleanup: simplify flag parsing and merge into mflag (rebase ++) #8158
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
Conversation
|
gofmt failed |
faa36d4 to
0e7e99e
Compare
|
(I haven't closed the original because i'm not 100% sure the somewhat large number of changes I've had to make are right) looks like I'm going to need some help - there's an integration test failure that I don't know enough about: |
|
mmm, and then I ran the tests again, and they passed.... |
runconfig/parse.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed. It was moved to api/client/commands.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SvenDowideit Arggg, forgot to remove this one. Sorry about that! Can you amend?
|
@SvenDowideit I'll send you a PR, it will be easier than commenting. |
|
@tiborvass awesome, thanks :) |
43bd28c to
968ab8e
Compare
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do exact check of error? We have already one false-pass test where we don't check error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for a simple: strings.Contains(out, "Conflicting options")
Also, the Test has to start with TestRun.
|
LGTM |
runconfig/parse.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SvenDowideit I forgot to remove all this block which is redundant since we already set those fields when creating the config variable.
Signed-off-by: Solomon Hykes <solomon@docker.com> Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: SvenDowideit)
Signed-off-by: Solomon Hykes <solomon@docker.com> Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: SvenDowideit)
Signed-off-by: Solomon Hykes <solomon@docker.com> Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: SvenDowideit)
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
Signed-off-by: Tibor Vass <teabee89@gmail.com> Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: SvenDowideit)
|
updating, building and testing. - |
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)
968ab8e to
406f419
Compare
|
|
Ping @SvenDowideit |
|
I'm closing this. There are way too many things that changed, and I don't know enough about any of them to be confident that I got the merge right. |
this is to get #7551 updated for merge.
I've added the missing non-global validation functions, and rebased