Skip to content
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 set writes strings instead of booleans #2622

Open
jroitgrund opened this issue Feb 3, 2017 · 3 comments
Open

yarn config set writes strings instead of booleans #2622

jroitgrund opened this issue Feb 3, 2017 · 3 comments

Comments

@jroitgrund
Copy link

What is the current behavior?
yarn config set strict-ssl false sets strict-ssl to "false" (string) which is not respected by yarn install.

What is the expected behavior?
yarn config set strict-ssl false sets strict-ssl to false (boolean).

@jovehammer16
Copy link

I think this should be fixed by #2440

@wesm87
Copy link

wesm87 commented Mar 2, 2017

This is still an issue as of v0.20.3, except now the previous workaround now longer works. Previously I could do yarn config set strict-ssl '' and it would be interpreted as a false value. Here's the current behavior:

$ yarn config set strict-ssl true --global
success Set "strict-ssl" to true.

$ yarn config set strict-ssl false --global
success Set "strict-ssl" to "false".

$ yarn config set strict-ssl '' --global
success Set "strict-ssl" to true.

This has effectively broken yarn for me until this issue is fixed, as every time yarn tries to fetch any new data I get an unable to get local issuer certificate error.

EDIT: So the error I just mentioned seems to have fixed itself. I think the issue is more the fact that the way the true / false values are printed is confusing. Sometimes the output is success Set "strict-ssl" to true. or success Set "strict-ssl" to false. and sometimes the boolean value is in quotes (success Set "strict-ssl" to "true". and success Set "strict-ssl" to "false".)

@felixfbecker
Copy link

It works for me if I use yarn config set strict-ssl false, but doesn't if I pass --strict-ssl false. Is the command line flag not supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants