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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option --url and --connection should imply --remote. #13296

Conversation

Romain-Geissler-1A
Copy link
Contributor

Closes #13242

Note: I am not sure how to actually test anything, I blindly tried to add a test, hoping your CI will run it for me !

@Romain-Geissler-1A Romain-Geissler-1A force-pushed the url-and-connection-implies-remote branch 2 times, most recently from d7ffc25 to 049b6df Compare February 19, 2022 14:17
@Romain-Geissler-1A Romain-Geissler-1A force-pushed the url-and-connection-implies-remote branch from 049b6df to 23a7f4e Compare February 19, 2022 14:54
@mheon
Copy link
Member

mheon commented Feb 20, 2022

@jwhonce PTAL

@rhatdan
Copy link
Member

rhatdan commented Feb 20, 2022

LGTM
Thanks @Romain-Geissler-1A

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

Can you add a comment in root.go

connectionFlagName := "connection"
that if someone makes a change there the same change should be made here. To make sure we don't break in the future if the flag is renamed for example

otherwise LGTM

@Romain-Geissler-1A
Copy link
Contributor Author

Can you add a comment in root.go

connectionFlagName := "connection"

that if someone makes a change there the same change should be made here. To make sure we don't break in the future if the flag is renamed for example
otherwise LGTM

To be honest if this was one of my C++ projects, I would ask my guys to somehow define this const char* as a global variable somewhere and reuse it in both files. I know nothing at all about go, but most likely I guess there is a way to define a global const variable and if yes I will most likely find it by Googling a bit. Do you want to me introduce a const global variable instead ?

@Luap99
Copy link
Member

Luap99 commented Feb 20, 2022

Sure, make it a global const but this does not fix the problem that somebody might change the flag in one place but not the other.

@jwhonce
Copy link
Member

jwhonce commented Feb 21, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 21, 2022
@rhatdan
Copy link
Member

rhatdan commented Feb 21, 2022

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan, Romain-Geissler-1A

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 21, 2022
@openshift-merge-robot openshift-merge-robot merged commit b3963e7 into containers:main Feb 21, 2022
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman -c ConnectionName doesn't imply --remote
6 participants