Uh oh!
There was an error while loading. Please reload this page.
src: use for loop in Dotenv::GetPathFromArgs - #54385
Conversation
anonrig
left a comment
There was a problem hiding this comment.
Can you add a cc test for testing only this function and every edge case you're targeting?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #54385 +/- ##
==========================================
- Coverage 87.08% 87.07% -0.01%
==========================================
Files 648 648 Lines 182341 182338 -3 Branches 34982 34981 -1 ==========================================
- Hits 158783 158773 -10 - Misses 16831 16833 +2 - Partials 6727 6732 +5
|
Uh oh!
There was an error while loading. Please reload this page.
avivkeller
commented
Sep 6, 2024
@anonrig Do you think this should land (eventually), or it should be held-off, and a redone |
avivkeller
commented
Sep 12, 2024
Closing in favor of #54913 |
This PR replaces the old
whileloop with a newerforloop.Fixes the following edge cases:
node script.js --env-file .env node --env-file-ABCD .env node -- --env-file .env node -invalid --env-file .env # this will error, but the env file is still processedUnfortunately, this introduces an edge case where some argument parameters, such as
--eval <...>cause any future--env-filearguments to be ignored.Fixes#54255
Fixes#54232
Related to #54237