-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
fix: pass global args to all crane invocations #709
fix: pass global args to all crane invocations #709
Conversation
this change looks like a breaking change, before args are passed only to crane push, but now args are passed to every subcommand. principled fix for this is to only pass global flags to all by plucking them out of args first. |
I see, so you only want to pass on the following flags? Global Flags:
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform platform Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all)
-v, --verbose Enable debug logs TBH, I found it a bit surprising that one is supposed to use |
|
Not every flag deserves its own attribute, if it translates 1:1 to the underlying tool, if we did support something like this then there would be two different way of getting the same outcome, eg: |
8b4d9dd
to
465e2c2
Compare
Ok, I think disabling I updated the PR now to put all global flags into a |
465e2c2
to
e6e6e9b
Compare
Anything I can do about the test failure? Looks like some infrastructure issue ... |
This fixes #527. Please let me know if I missed anything. Thanks!