Skip to content

fix: Exclude framework-inferred env vars with wildcards#11303

Merged
anthonyshew merged 2 commits into
mainfrom
shew/turborepo-bug-10826-diagnosis-be12
Dec 23, 2025
Merged

fix: Exclude framework-inferred env vars with wildcards#11303
anthonyshew merged 2 commits into
mainfrom
shew/turborepo-bug-10826-diagnosis-be12

Conversation

@anthonyshew
Copy link
Copy Markdown
Contributor

Description

Framework inference opt-out via negative env wildcards in globalEnv (e.g., "globalEnv": ["!VITE_*"]) was not working as documented. As described in #10826, globalEnv wasn't making its way to per-task contexts.

With this PR, we propagate those changes down to task execution context to meet user expectations.

Testing Instructions

Adding some tests around this behavior and hand tested myself.

CLOSES #10826
CLOSES TURBO-4831

@anthonyshew anthonyshew requested a review from a team as a code owner December 23, 2025 16:20
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
examples-basic-web Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-designsystem-docs Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-gatsby-web Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-kitchensink-blog Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-nonmonorepo Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-svelte-web Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-tailwind-web Ready Ready Preview, Comment Dec 23, 2025 4:57pm
examples-vite-web Ready Ready Preview, Comment Dec 23, 2025 4:57pm
turbo-site Ready Ready Preview, Comment Dec 23, 2025 4:57pm

@anthonyshew anthonyshew changed the title feat: Exclude framework-inferred env vars with wildcards fix: Exclude framework-inferred env vars with wildcards Dec 23, 2025
@anthonyshew anthonyshew merged commit 8df4043 into main Dec 23, 2025
99 checks passed
@anthonyshew anthonyshew deleted the shew/turborepo-bug-10826-diagnosis-be12 branch December 23, 2025 17:13
ch4og pushed a commit to csmplay/mapban that referenced this pull request Dec 24, 2025
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [turbo](https://turborepo.com) ([source](https://github.com/vercel/turborepo)) | [`2.7.1` -> `2.7.2`](https://renovatebot.com/diffs/npm/turbo/2.7.1/2.7.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/turbo/2.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/turbo/2.7.1/2.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vercel/turborepo (turbo)</summary>

### [`v2.7.2`](https://github.com/vercel/turborepo/releases/tag/v2.7.2): Turborepo v2.7.2

[Compare Source](vercel/turborepo@v2.7.1...v2.7.2)

<!-- Release notes generated using configuration in .github/release.yml at v2.7.2 -->

#### What's Changed

##### Docs

- perf(create-turbo): Download files faster by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11297](vercel/turborepo#11297)

##### Examples

- examples(dev-deps): bump turbo from 2.6.3 to 2.7.1 in /examples/with-shell-commands in the with-shell-commands group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11291](vercel/turborepo#11291)
- examples(dev-deps): bump the with-svelte group in /examples/with-svelte with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11292](vercel/turborepo#11292)
- examples(deps): bump the basic group in /examples/basic with 4 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11293](vercel/turborepo#11293)

##### Changelog

- fix: Use newline for separator in misuse text by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;10834](vercel/turborepo#10834)
- fix(create-turbo): Loader UI states by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11300](vercel/turborepo#11300)
- fix: Exclude framework-inferred env vars with wildcards by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11303](vercel/turborepo#11303)
- fix: Don't flash TUI on a >>> FULL TURBO by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11306](vercel/turborepo#11306)
- fix: Transit nodes in Devtools by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11307](vercel/turborepo#11307)

**Full Changelog**: <vercel/turborepo@v2.7.1...v2.7.2>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNC4yIiwidXBkYXRlZEluVmVyIjoiNDIuMTQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.csmpro.ru/csmpro/mapban/pulls/79
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
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.

Framework inference opt-out via negative env wildcard not working

2 participants