Skip to content

Conversation

@macksal
Copy link
Contributor

@macksal macksal commented Nov 14, 2025

Why

#3236 was recently merged, adding a check for the EAS account's build usage and issuing a warning before running a build. It introduced a bug: it evaluates the project's config to get the EAS projectId, but it doesn't apply the env from the build profile beforehand. All other code that reads the config will first

This created an issue in my CI builds where I am pinned to the latest CLI version. Because my app.config.ts depends on certain values being set in the environment (and throws if they aren't): this caused the entire build command to fail. It seems sensible to keep the previous behaviour where eas build will always apply env from the relevant build profile before evaluating app.config.ts.

How

Move the code that issues the warning to deeper within the runBuildAndSubmitAsync flow, after the build profile has been read, and the env from that profile is available and used when evaluating the project config.

Test Plan

The test added in #3236 is still passing, and this PR removes the problematic behaviour (evaluating the project config without applying env from the build profile).

… env was not applied before evaluating config
@github-actions
Copy link

Subscribed to pull request

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

Generated by CodeMention

@macksal
Copy link
Contributor Author

macksal commented Nov 14, 2025

/changelog-entry bug-fix When warning about usage overages, the build profile's env was not applied before evaluating config

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.

1 participant