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 doesn’t always respect disable-self-update-check #6721

Open
remcohaszing opened this issue Nov 26, 2018 · 2 comments
Open

Yarn doesn’t always respect disable-self-update-check #6721

remcohaszing opened this issue Nov 26, 2018 · 2 comments
Assignees
Labels

Comments

@remcohaszing
Copy link

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Since yarn got support for the XDG base dir specification, I moved my ~/.yarnrc to ~/.config/yarn/config.

I have the following configuration file:

"--emoji" true
disable-self-update-check true
prefix "/home/remco/.local"

I know this works, as emoji are working. However, I noticed that ~/.yarnrc keeps getting generated again with the following contents:

# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


lastUpdateCheck 1542965933936

If the current behavior is a bug, please provide the steps to reproduce.
Create a ~/.config/yarn/config as described above, and run yarn.

What is the expected behavior?
No ~/.yarnrc should be generated

Please mention your node.js, yarn and operating system version.

$ node --version
v10.13.0
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.1 LTS
Release:	18.04
Codename:	bionic
@ghost ghost assigned rally25rs Nov 26, 2018
@ghost ghost added the triaged label Nov 26, 2018
@yanoryuichi
Copy link

It' same in Windows. I always see %USERPROFILE%\.yarnrc.

@yan12125
Copy link
Contributor

Apparently not all options are read from ~/.config/yarn/config. Issue #2334 is still open and a previous attempt on fixing it is abandoned #2954.

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

No branches or pull requests

4 participants