-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Rename --registry-scanning to --registry-disable-scanning & keep it independent from --git-readonly #2813
Rename --registry-scanning to --registry-disable-scanning & keep it independent from --git-readonly #2813
Conversation
You didn't fix the boolean-flag-defaulting-to-true problem from #2790. |
I don't really see it as a problem, but I can change it if you see it as a showstopper. |
Well, perhaps either implement it as suggested in the issue, or mount an argument against doing so. My argument is essentially that it's convention to have boolean flags default to |
My only argument is that double negatives are not intuitive.
…On Mon, Feb 3, 2020, 18:45 Michael Bridgen ***@***.***> wrote:
You didn't fix the boolean-flag-defaulting-to-true problem from #2790
<#2790>.
I don't really see it as a problem, but I can change it if you see it as a
showstopper.
Well, perhaps either implement it as suggested in the issue, or mount an
argument against doing so. My argument is essentially that it's convention
to have boolean flags default to false, so having one that defaults to
true will surprise some people; and, secondarily, it's a trap for future
players, since boolean values (in libraries, structs, variables) default to
false, and eventually someone will forget that this one flag is different,
and produce unexpected results. There would probably *not* be a lot of
fallout, but why not avoid it if you can?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2813?email_source=notifications&email_token=AASA4JDKHD5BG3P3GUJPLPTRBBJ4XA5CNFSM4KPIC352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKUX33Y#issuecomment-581533167>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASA4JHNVQM3EZI3CXREYF3RBBJ4XANCNFSM4KPIC35Q>
.
|
Double negatives don't arise -- you either supply
to turn scanning off, or omit that flag to let it default to (If the status quo were that registry scanning was off and you had to explicitly switch it on, then the recommendation would be to have |
Fair enough. I will change it later today
…On Tue, Feb 4, 2020, 11:43 Michael Bridgen ***@***.***> wrote:
My only argument is that double negatives are not intuitive.
Double negatives don't arise -- you either supply
--disable-registry-scanning
to turn scanning off, or omit that flag to let it default to false, i.e.,
to keep the status quo.
(If the status quo were that registry scanning was *off* and you had to
explicitly switch it *on*, then the recommendation would be to have
--registry-scanning.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2813?email_source=notifications&email_token=AASA4JDUM6H72P7TKFBGJCTRBFBFTA5CNFSM4KPIC352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKXEXKA#issuecomment-581847976>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASA4JDGSG4OY5DOJQQZVYDRBFBFTANCNFSM4KPIC35Q>
.
|
The |
dd61bc6
to
560e7b7
Compare
@squaremo I am changing the flag now and found another reason for not having the I will continue changing it anyhow since you fell strongly in favor of it. Just leaving it for the record. |
Also a wonderful illustration of why not to introduce a boolean field which needs to be |
You can change the name, it's the default value I feel strongly about. |
Ah, that's better. |
For the record, I inherited that part of the code :) |
test/e2e/fixtures/kustom/14_release_image/release_image_patch.yaml
Outdated
Show resolved
Hide resolved
48869ee
to
7c88004
Compare
@squaremo I think I've addressed all your comments, PTAL |
7c88004
to
cd8534e
Compare
cd8534e
to
40aa8b9
Compare
40aa8b9
to
324d5b2
Compare
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.
Looks good to me -- thank you for patiently following this up
Fixes #2790