8000 1962 invalid port by latiif · Pull Request #2227 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1962 invalid port #2227

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

Closed
wants to merge 3 commits into from
Closed

1962 invalid port #2227

wants to merge 3 commits into from

Conversation

latiif
Copy link
@latiif latiif commented Dec 15, 2019

- What I did
I fixed the issue described in #1962 pertaining to invalid port passed with the flag -p

- How I did it
Following the suggestions of @thaJeztah, I checked if the flag is advanced i.e. of the form -p target=<PORT>,publish=<PORT> and if it was a shorthand, the parsing error should be reported with an appropriate message and NOT try to parse it as advanced.

- How to verify it

  • Wrote a test under opts_test.go.
  • Ran previous tests against my change with make -f docker.Makefile test
  • Generated a binary and checked it for desired behaviour.

- Description for the changelog
Capture erroneous port in shorthand version of the publish flag.

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

Markdown Monster icon

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "1962-invalid-port" git@github.com:l
8000
atiif/cli.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354376832
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@latiif
Copy link
Author
latiif commented Dec 15, 2019

@GordonTheTurtle
Following your instructions, I got
fatal: Needed a single revision
invalid upstream 'HEAD~842354376832

I tried adding https://github.com/docker/cli as an upstream remote, but it didn't work either.

Any suggestions?

Signed-off-by: Latiif <llusx@outlook.com>
Signed-off-by: Latiif <llusx@outlook.com>
Signed-off-by: Latiif <llusx@outlook.com>
@thaJeztah
Copy link
Member

Thank you for contributing; there were a couple of pull-requests addressing the same issue, and after reviewing those, we picked #1965 (carried in #2251)

Apologies that your PR didn't get merged, but we appreciate your contribution (and hope to see future contributions 🤗 )

@thaJeztah thaJeztah closed this Jan 16, 2020
@latiif latiif deleted the 1962-invalid-port branch January 16, 2020 14:25
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.

3 participants
0