-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Remove unused archive flag from diff commands #14364
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jwhonce 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 |
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.
Why do you only keep the flag for images, removing it is a breaking change and should not be done until 5.0 IMO.
LGTM |
I left it in images because of the deprecation text (No idea who we are being compatible with...). As the flag has always been hidden, I did not think we needed to wait. If you feel strongly, I can pull it from the Options struct and just leave it in the CLI. Flag is not included in any of the man pages. |
Well I do not know either so I would rather not change it without knowing the consequences. I also find it very inconsistent to only keep it for one command. IMO either remove it for all or keep it for all. |
* Option left in images/diff.go CLI as comment implies it is needed for backwards compatibility. ```release-note NONE ``` [NO NEW TESTS NEEDED] Signed-off-by: Jhon Honce <[email protected]>
@@ -13,7 +13,7 @@ import ( | |||
"github.com/spf13/cobra" | |||
) | |||
|
|||
func Diff(cmd *cobra.Command, args []string, options entities.DiffOptions) error { | |||
func Diff(_ *cobra.Command, args []string, options entities.DiffOptions) 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.
Should we just drop this entirely? Or is it exposed externally and it would be an API break.
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.
@TomSweeneyRedHat the cobra method signature requires this parameter.
LGTM |
/lgtm |
backwards compatibility.
[NO NEW TESTS NEEDED]
Signed-off-by: Jhon Honce [email protected]