Skip to content

fix(env): dev env validation has false positives for frameworks - #307

Closed
mdong1909 wants to merge 6 commits into
mainfrom
test/env-validation-framework-matrix
Closed

mdong1909 wants to merge 6 commits into
mainfrom
test/env-validation-framework-matrix

Conversation

@mdong1909

@mdong1909 mdong1909 commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Framework class B/C owns env loading. Some frameworks copy .env.local values into process.env before Void validates them. Void currently removes the copied shell values, causing false missing-variable warnings during development. The fix snapshots process.env before framework loading so it can distinguish original shell variables from values added later by the framework.

EDIT: also updated to properly handle class A frameworks


ViteConf repo (astro): void would always warn about missing env... even though variables existed.
image

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62647ec4e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/void/src/plugin-env-schema.ts Outdated
@mdong1909
mdong1909 marked this pull request as draft August 30, 2026 09:07
@mdong1909
mdong1909 marked this pull request as ready for review September 4, 2026 02:11
@cpojer

cpojer commented Sep 4, 2026

Copy link
Copy Markdown
Member

Deferring to @TheAlexLichter who built this.

@cpojer
cpojer removed their request for review September 4, 2026 02:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b662c6c8ea

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/void/src/plugin-env-schema.ts Outdated
@mdong1909

mdong1909 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor Author

As a note: because the false validation warning shows up on log, it is very confusing for AI agents. codex got mixed up in loops with the viteconf repo

@TheAlexLichter TheAlexLichter self-assigned this Sep 10, 2026
@cpojer cpojer closed this in ff9f06e Sep 30, 2026
@cpojer

cpojer commented Sep 30, 2026

Copy link
Copy Markdown
Member

Part of this was no longer relevant, the other part was fixed on main.

@cpojer
cpojer deleted the test/env-validation-framework-matrix branch October 3, 2026 01:50
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.

3 participants