Skip to content

refactor(workspace): drop hardcoded core-aspect-env special case#10353

Merged
davidfirst merged 1 commit intorefactor/component-loading-v2-take-2from
refactor/drop-core-aspect-env-special-case
May 7, 2026
Merged

refactor(workspace): drop hardcoded core-aspect-env special case#10353
davidfirst merged 1 commit intorefactor/component-loading-v2-take-2from
refactor/drop-core-aspect-env-special-case

Conversation

@davidfirst
Copy link
Copy Markdown
Member

Builds on #10350.

Removes the hardcoded prepend in `buildLoadGroups` that always loaded `teambit.harmony/envs/core-aspect-env` and `teambit.harmony/envs/core-aspect-env-jest` first. With the recursive env-DAG sort from #10350, those envs naturally land in the deepest layer of the topological sort and load early. The hardcode was a workaround for the previous one-level sort.

Verification

  • Smoke-tested on bit7 itself (the 311-component workspace the special case was originally written for): `bit7 status` runs cleanly. This is the most important signal — the special case was specifically a "bit core repo" workaround per the inline comment.
  • 21 contract tests pass.
  • Harness e2e on a 2-component workspace produces zero diffs.

Stack

…uildLoadGroups

D-001 predicted that the recursive env-DAG sort would make the prepended
'always load core-aspect-env first' workaround unnecessary. Verified:
311-component bit7 workspace (the workspace the special case was written
for) loads cleanly without it.
Base automatically changed from refactor/component-loader-recursive-env-sort to refactor/component-loading-v2-take-2 May 7, 2026 19:53
@davidfirst davidfirst merged commit 6682e50 into refactor/component-loading-v2-take-2 May 7, 2026
6 of 12 checks passed
@davidfirst davidfirst deleted the refactor/drop-core-aspect-env-special-case branch May 7, 2026 19:53
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