Repository navigation
Replies: 2 comments
|
Sibling variant of #204 (global-install failure): same loader bare-specifier family, different layout (split host/profile). Cross-linked for maintainers. |
0 replies
|
Retested this on the current v0.2.2-alpha.2 ( Minimal fixture:
Result: {"resolved":"file:///private/tmp/dsh-split-retest-profile/node_modules/dsh-split-retest-20261029/index.js","marker":"SPLIT_PROFILE_RESOLUTION_OK"}The relevant mechanism is the project-scoped No new discussion is needed on our side; this is just a current-version verification of the original report. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Observed on both @deepseek-ai/dsh@0.1.1-rc.2 (npm) and a source checkout at dsh-v0.1.2-alpha.1:
When the harness host and the profile live in separate installs (a packaged host + external DSH_HOME/profile, or a repo checkout + external profile), every bundle entry declared as a bare package name (e.g. dsh-context, dsh-font, dsh-quota-dashboard from the profile's dsh.profile.bundles) fails at boot:
Root cause: EntryTree.import()'s bare-specifier branch does a plain import(name) from the host's module context, which cannot see the profile's own node_modules. With --expose-internals the loader.internal path resolves it; without, every bare-name entry fails.
Workaround we ship (ported from the dataelement DSH Desktop shell's cordis-plugin-loader@1.0.2 lib patch): retry the failed bare import through createRequire anchored at the profile's package.json (ctx.baseUrl), then import the resolved file URL.
Request: either support split-layout resolution in the loader, or document the intended way for external profiles to declare bare-name plugin entries.
All reactions