fix(envs): treat empty-env as a core env so bit install skips its package - #10711
Merged
Merged
Conversation
PR Summary by QodoRecognize empty-env as a core environment
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper |
GiladShoham
approved these changes
Sep 15, 2026
…uly revert in the core-envs comment
|
Code review by qodo was updated up to the latest commit e618fab |
davidfirst
enabled auto-merge (squash)
September 15, 2026 19:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
teambit.harmony/empty-envis a core aspect, but it was not in the core-envs list. Because of this,bit installhandled it as an external env. It added the@teambit/empty-envpackage to the env root and pulled the whole Bit core into the workspace (3187 packages instead of 2). The dependency-resolver and dev-files guards also fetched the env component from the remote on each load.This change adds
empty-envtogetCoreEnvsIds().The same line was added and then reverted in July, before #10535 was merged, with the note "it breaks env loading for the component". I reproduced what the revert saw. In the bit repo itself,
bit show teambit.harmony/empty-envnow reports its own env (core-aspect-env) as "not loaded". This is the existing load-groups behavior for every core env in this repo:bit show teambit.react/react,teambit.harmony/nodeandteambit.harmony/aspectreport the same warning on master. The component still compiles and builds. Thebit_prjob on this PR compiled and snappedempty-envwith the other 97 dependents. The remove-core-envs branch (#10465) returns onlyempty-envfromgetCoreEnvsIds()and passes fullbit ci pr --buildruns with it.A unit test in the install aspect makes sure that no env package is added to the env root for
empty-env. It does not assert anything about the other core envs, so it stays valid after #10465.