Repository navigation
build(deps): take @taskgenius/calendar from npm instead of the submodule - #726
Merged
Merged
Conversation
The community directory clones the repo without submodules, so the workspace:* link to packages/calendar resolved to nothing and its build check failed with "Cannot find module '@taskgenius/calendar'". Depend on the published package (0.16.3, cut from the commit the submodule pinned), and point the submodule at that release commit. CI and the Obsidian review workflow no longer init the submodule, so they build the way the directory does. The lockfile change adds only the calendar entries; nothing else is re-resolved.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes the community directory's "Build verification failed" warning.
Cause
The directory clones the repo without submodules.
@taskgenius/calendarwasworkspace:*→packages/calendar, which is empty in that clone, sotscfailed withCannot find module '@taskgenius/calendar'. I reproduced this by building a fresh clone of master without submodules.Change
@taskgenius/calendar@^0.16.3from npm. 0.16.3 was released from taskgenius/calendarmain, i.e. the commit the submodule pinned (314d5ee) plus the version bump.eeda06e.pnpm installwould also have re-resolved the git-hosted@codemirror/languageandobsidiandependencies, so I edited it by hand; the integrity hash matches the registry.Verification
A fresh clone of this branch without submodules passes
pnpm install --frozen-lockfileandpnpm run build(tsc + esbuild).styles.cssis byte-identical in size to the 10.1.2 asset.Local development note
The plugin no longer builds against
packages/calendarautomatically. To try local calendar changes in the plugin, link it withpnpm link ./packages/calendaror point the dependency at the workspace temporarily, then publish a calendar release before shipping the plugin.