Skip to content

[eas-cli] Remove inherited dotenv values from local builds - #4244

Open
ramonclaudio wants to merge 3 commits into
@ramonclaudio/dvt-119-eas-cli-env-modefrom
@ramonclaudio/dvt-119-local-build-env
Open

[eas-cli] Remove inherited dotenv values from local builds#4244
ramonclaudio wants to merge 3 commits into
@ramonclaudio/dvt-119-eas-cli-env-modefrom
@ramonclaudio/dvt-119-local-build-env

Conversation

@ramonclaudio

Copy link
Copy Markdown
Member

Stacked on #4229.

Why

eas build --local can pass dotenv values inherited from a parent process to the local-build plugin, so the local build can use values from a different mode.

How

I updated eas build --local to remove inherited dotenv values before starting the local-build plugin and keep the env vars passed by EAS.

Test Plan

Tests and package checks pass.

@linear-code

linear-code Bot commented Aug 21, 2026

Copy link
Copy Markdown

DVT-119

@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.89%. Comparing base (743749d) to head (30b16eb).

Additional details and impacted files
@@                            Coverage Diff                             @@
##           @ramonclaudio/dvt-119-eas-cli-env-mode    #4244      +/-   ##
==========================================================================
+ Coverage                                   63.88%   63.89%   +0.01%     
==========================================================================
  Files                                        1033     1033              
  Lines                                       47535    47537       +2     
  Branches                                     9999     9999              
==========================================================================
+ Hits                                        30365    30368       +3     
+ Misses                                      17069    17068       -1     
  Partials                                      101      101              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@ramonclaudio
ramonclaudio marked this pull request as ready for review August 21, 2026 17:37
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder
packages/eas-cli/src/build/** @sjchmiela

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

};
process.on('SIGINT', interruptHandler);
try {
const processEnv = getEnvWithoutInheritedDotenvValues(process.env);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EXPO_UNSAFE_DOTENV_KEYS and this utility is something I'm not familiar with 🤔 maybe @sjchmiela or @szdziedzic can evaluate this better. I believe, this may be similar to a utility for original-env we have in @expo/env, so not sure if we need to reconsolidate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants