Summary
After PR #10201 fixed MissingManuallyConfiguredPackages when running bit new / bit fork on an env that uses "+" dependency markers, the same error re-surfaces after running bit scope rename --refactor on the default scope. The scenario originally surfaced with the Vue starter (my-vue-env extends bitdev.vue/vue-env which declares @mdx-js/mdx as a peer).
Related: #10200, #10201
Reproduction
Branch: fix/scope-rename-missing-deps
A new e2e test has been added in e2e/harmony/dependencies/forked-env-missing-deps.e2e.ts that covers two cases:
- Forking an env with
"+" markers in its dep-resolver config, then running bit scope rename --refactor.
- Forking an env that extends a parent env declaring the peer (the actual Vue starter shape), then running
bit scope rename --refactor.
In both cases, bit status incorrectly reports MissingManuallyConfiguredPackages for the forked env after the rename, even though the package is resolved (either in workspace node_modules or through the parent env's peer policy).
Progress
Notes
Summary
After PR #10201 fixed
MissingManuallyConfiguredPackageswhen runningbit new/bit forkon an env that uses"+"dependency markers, the same error re-surfaces after runningbit scope rename --refactoron the default scope. The scenario originally surfaced with the Vue starter (my-vue-envextendsbitdev.vue/vue-envwhich declares@mdx-js/mdxas a peer).Related: #10200, #10201
Reproduction
Branch:
fix/scope-rename-missing-depsA new e2e test has been added in
e2e/harmony/dependencies/forked-env-missing-deps.e2e.tsthat covers two cases:"+"markers in its dep-resolver config, then runningbit scope rename --refactor.bit scope rename --refactor.In both cases,
bit statusincorrectly reportsMissingManuallyConfiguredPackagesfor the forked env after the rename, even though the package is resolved (either in workspacenode_modulesor through the parent env's peer policy).Progress
fix/scope-rename-missing-depsdescribe.onlylocally for iteration)bit scope rename --refactorreintroduces the false-positive that fix: Missing Packages After bit new with Forked Env #10201 resolved forbit new. Suspected: after the rename, the forked env's component config is rewritten and the resolution path thatapplyAutoDetectedPeersFromEnvOnEnvItSelfrelies on is no longer hit, sogetDependenciesToAddManually()falls back to the failing_manuallyAddPackage()path.describe.onlyand run lint + targeted e2eNotes
is-positiveis used as the peer (avoids pulling in real Vue packages).