-
Notifications
You must be signed in to change notification settings - Fork 18
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!: Update npm.strictSSL behavior #935
Conversation
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Let me try to explain this and clarify the situation. I found it quite complicated to manage a field that can be set via both a config file and a command-line flag. For instance, if I don't set the flag, I can easily detect this using For the remaining scenarios, everything works as expected. Given that
|
@tianfeng92 Let's say we have a pointer boolean. The strictSSL config field can have 3 values then: In prose, the logic would be:
|
For For the case of I think in this case, although the |
Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
Description
Update the
strictSSL
field to a boolean pointer to distinguish between three states: not set,true
, orfalse
.When it's not set, the npm
strictSSL
default value oftrue
will be used.strictSSL
not set: https://app.saucelabs.com/tests/22db9a3effdc4d9cbd005839403df483strictSSL
is true: https://app.saucelabs.com/tests/5a57b6dc937c447ea22852c63d5d97c7strictSSL
is false: https://app.saucelabs.com/tests/1ac681507c9a4a8da2f14b1deb6169d9This update should be merged after chef release.
sauce-runner-utils updates: saucelabs/sauce-runner-utils#76
Besides, mark
npm.registry
field as deprecated.