-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.env not read so ${ENV_VAR} unusable in .yarnrc.yml #2724
Comments
Yarn doesn't read |
Thanks for the (very) quick response. Could you suggest a recommended way to have the Thanks again! |
Why not put them in your bashrc/zshrc/...? |
Brilliant! Not only did this fix my problem, but I can get rid of my |
I still think this is valid. I don't want to put it in |
I agree with this. I would rather have repo specific environment vars instead of global |
I agree. Typical use case is for NPM auth tokens that may differ from a project to an other. It'd be great if Yarn could read the |
@theoavoyne would love to see your PR coming :) |
Describe the bug
I’m sure I must be doing something wrong, but I can’t get yarn to read the environment variables in my
.env
file, causing anyyarn
command to throw the following error when${ENVIRONMENT_VARIABLES}
are used in.yarnrc.yml
:Could it be that I have to configure something? The docs don’t seem to mention so.
To Reproduce
Clone this example repo and run
yarn
: https://github.com/lensbart/yarnNote: I didn’t use Sherlock because I thought this might interfere with resolving the .env file
The text was updated successfully, but these errors were encountered: