Skip to content

Create .env from .env-dist in make preflight - #17461

Merged
stevejalim merged 1 commit into
mainfrom
janriokrause/preflight-create-env
Oct 21, 2026
Merged

stevejalim merged 1 commit into
mainfrom
janriokrause/preflight-create-env

Conversation

@janriokrause

Copy link
Copy Markdown
Contributor

Prior to this change, running make preflight in a checkout without .env silently ran with the settings defaults, not the local development values from .env-dist.

preflight now depends on the existing .env target, which pull already uses. It only copies .env-dist when .env doesn't exist, so local settings are never overwritten. This also keeps make preflight consistent with Springfield.

Port of mozmeao/springfield#1971.

Prior to this change, running `make preflight` in a checkout without
`.env` silently ran with the settings defaults, not the local
development values from `.env-dist`. `preflight` now uses the existing
`.env` target, like `pull` does. An existing `.env` is left untouched.
@janriokrause
janriokrause requested a balanced review from Copilot October 21, 2026 01:12
@janriokrause janriokrause self-assigned this Oct 21, 2026
@janriokrause janriokrause added Infra Infrastructure Review: µ Code review time: 5 minutes or less WMO and FXC Code relevant to both mozilla/bedrock (www.mozilla.org) and mozmeao/springfield (www.firefox.com) Quick At first look, this work seems like it could be fast to finish. labels Oct 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The single-line change reuses the existing guarded initialization target without altering preflight commands.

No open issues 🎉

What changed in this PR

Ensures make preflight initializes local development configuration before setup runs.

Changes:

  • Adds the existing .env target as a prerequisite, creating missing configuration without overwriting local settings.
File Description
Makefile Makes preflight depend on .env initialization.

Review effort: Balanced

@stevejalim
stevejalim added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 145cc34 Oct 21, 2026
11 checks passed
@stevejalim
stevejalim deleted the janriokrause/preflight-create-env branch October 21, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Infra Infrastructure Quick At first look, this work seems like it could be fast to finish. Review: µ Code review time: 5 minutes or less WMO and FXC Code relevant to both mozilla/bedrock (www.mozilla.org) and mozmeao/springfield (www.firefox.com)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants