-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(core): unloading expanded envs #20524
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 9cebc58. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 5 targets
Sent with 💌 from NxCloud. |
Lets wait for #19401 to merge in, then we can add the same check in here with:
|
If #19401 takes too long to get merged, should we consider merging this one first and instead adding the condition directly in #19401 ? |
there is another pr #22585 that also tries to fix the same issue. i am going to close this one. |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
When an env is expandable, it is not being unloaded before loading a task environment variables. Hence the initial value (from
bin/nx.ts
) is kept, and overwrites are not beings used when running the task.This is because the
unloadDotEnvFiles()
function is comparing expanded variables with non expanded variables.Expected Behavior
Every
.env
,.env.local
and.local.env
should be unloaded before loading the appropriate envs for a task.Related Issue(s)