-
-
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
[Bug?]: yarn plugin import
removes injectEnvironmentFiles: []
from .yarnrc.yml
#5545
Labels
bug
Something isn't working
Comments
This was referenced Jun 30, 2023
arcanis
added a commit
that referenced
this issue
Jun 30, 2023
**What's the problem this PR addresses?** It was raised in #5544 (comment) that automatically injecting the `.env` file in the environment could break compatibility with some software that already do this in their own way. It makes sense, and I prefer to avoid doing that if there's a reasonable compromise. Also closes #5545. **How did you fix it?** Yarn will now default into loading the `.env.yarn` file, rather than `.env`. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
arcanis
added a commit
to yarnpkg/example-repo-zipn
that referenced
this issue
Jul 3, 2023
**What's the problem this PR addresses?** It was raised in yarnpkg/berry#5544 (comment) that automatically injecting the `.env` file in the environment could break compatibility with some software that already do this in their own way. It makes sense, and I prefer to avoid doing that if there's a reasonable compromise. Also closes yarnpkg/berry#5545. **How did you fix it?** Yarn will now default into loading the `.env.yarn` file, rather than `.env`. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Self-service
Describe the bug
When adding plugin by
yarn plugin import ...
,injectEnvironmentFiles: []
is removed in.yarnrc.yml
.(cf. #5531 (comment))
Here are reproduction steps:
yarn set version 4.0.0-rc.47
echo "yarnPath: .yarn/releases/yarn-4.0.0-rc.47.cjs\ninjectEnvironmentFiles: []" > .yarnrc.yml
yarn plugin import https://gitlab.com/Larry1123/yarn-contrib/-/raw/master/packages/plugin-production-install/bundles/@yarnpkg/plugin-production-install.js
cat .yarnrc.yml
does not includeinjectEnvironmentFiles
like:To reproduce
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: