Skip to content

watch: fix --env-file-if-exists crashing on linux if the file is missing#61870

Open
efekrskl wants to merge 1 commit intonodejs:mainfrom
efekrskl:fix/watch-mode-optional-env-crash
Open

watch: fix --env-file-if-exists crashing on linux if the file is missing#61870
efekrskl wants to merge 1 commit intonodejs:mainfrom
efekrskl:fix/watch-mode-optional-env-crash

Conversation

@efekrskl
Copy link
Contributor

Fixes #57040

--env-file-if-exists combined with --watch seems to crash in if the .env file is missing (in Linux), this PR aims to fix that.

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Feb 17, 2026
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.72%. Comparing base (4f13746) to head (6e0a587).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61870      +/-   ##
==========================================
- Coverage   89.72%   89.72%   -0.01%     
==========================================
  Files         675      675              
  Lines      204806   204806              
  Branches    39355    39351       -4     
==========================================
- Hits       183761   183756       -5     
- Misses      13330    13345      +15     
+ Partials     7715     7705      -10     

see 36 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Renegade334 Renegade334 added the watch-mode Issues and PRs related to watch mode label Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. watch-mode Issues and PRs related to watch mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--env-file-if-exists throws error when the .env file doesn't exist and when combined with --watch (now in lts)

3 participants