-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn config unable to set boolean value #1237
Comments
As a makeshift $ yarn config set strict-ssl "" |
Created #1590 to fix this, pending approval. |
It seems like this has been reintroduced in recent versions (I've had this issue with both 0.17.9 and 0.18.0). I took a quick look at the source code and it looks like the https://github.com/yarnpkg/yarn/blob/master/src/registries/npm-registry.js#L124 Could this be causing the issue? |
yarn config set strict-ssl "" |
I'm seeing the same behavior as @wesm87 and @thebetterjort in v0.18.1.
results in the following in
|
Looks like there's an open PR for this now: #2440 |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Any config value set using the cli is treated as a string. Setting this config for strict-ssl (#841) is not honored and an
unable to verify the first certificate
error is raised. Setting the same value strict-ssl false in an.yarnrc
results in a correct conversion.If the current behavior is a bug, please provide the steps to reproduce.
yarn config set strict-ssl false
success Set "strict-ssl" to "false".
yarn config list
{ 'strict-ssl': 'false',
... }
What is the expected behavior?
yarn config set strict-ssl false
success Set "strict-ssl" to false.
yarn config list
{ 'strict-ssl': false,
... }
Please mention your node.js, yarn and operating system version.
node v6.7.0
yarn v0.16.0
Windows 10
The text was updated successfully, but these errors were encountered: