Repository navigation
Depend on workspace siblings in @octanejs/shadcn - #289
Merged
Merged
Conversation
packages/shadcn and playground/octane pinned @octanejs/lucide, @octanejs/radix and @octanejs/sonner to exact versions, so pnpm resolved them from the npm registry rather than the workspace, and `changeset version` rewrote the pins on every release. That rewrite desynced pnpm-lock.yaml and failed the release job's frozen install. Use `workspace:*`, as every other package here does.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4 of 6 tasks
WebEferen
added a commit
that referenced
this pull request
Jul 26, 2026
Two independent drifts left manifest.jsonl stale, and the evals suite failed on both. `overlayLockfileHash` pins pnpm-lock.yaml, which #289 changed when it moved @octanejs/shadcn onto workspace siblings without rerunning the generator. That one was already stale on main; this branch just inherited it. `graderDigest` pins vitest.config.js, because the grading harness runs the submission under that exact config. The previous commit reworded the shadcn project's radix note, so every task's digest moved with it. Nothing else changed: same 19 tasks, same ids, same template and reference digests.
WebEferen
added a commit
that referenced
this pull request
Jul 26, 2026
* Resolve workspace specs in the shadcn registry and gate the class The registry builder copied package.json specifiers verbatim into the install specs the upstream shadcn CLI runs, so a `workspace:*` sibling emitted `@octanejs/radix@workspace:*`, which no consumer can install. Resolve the protocol to the sibling's current version, the substitution `pnpm pack` already makes for the published manifest. Those pins go stale on every sibling bump, so `changeset:version` regenerates the registry alongside the other generated artifacts, and CI now gates `registry:check`, which nothing checked before. validateWorkspacePackages rejects any sibling edge that is not `workspace:*`. That is the defect that broke the release job, and `packages:inventory:check` already gates it in CI. * Keep the registry test off hard-coded sibling versions registry.test.ts asserted the literal `@octanejs/[email protected]` the frozen pins happened to emit, so resolving the workspace protocol failed it. Derive the expected version from the sibling manifest instead: a literal goes stale on every sibling release, which is the drift the emit exists to avoid. Adds the case that actually guards the generator, that no item emits a local protocol. The shadcn vitest project's radix note described the pinned published copy; `workspace:*` makes that resolution the sibling source. * Regenerate the user-app corpus manifest Two independent drifts left manifest.jsonl stale, and the evals suite failed on both. `overlayLockfileHash` pins pnpm-lock.yaml, which #289 changed when it moved @octanejs/shadcn onto workspace siblings without rerunning the generator. That one was already stale on main; this branch just inherited it. `graderDigest` pins vitest.config.js, because the grading harness runs the submission under that exact config. The previous commit reworded the shadcn project's radix note, so every task's digest moved with it. Nothing else changed: same 19 tasks, same ids, same template and reference digests. * Drop the duplicated workspace resolver from the registry builder #283 landed the same fix on main as `installableDependencySpec`, and the merge took both implementations because they sit in different regions of the file. Only main's is wired into DEP_SPECS, so `resolveSiblingVersions`, `siblingVersions` and `depSpec` were dead code describing a path that never ran. Keep main's. The emitted registry is byte-identical either way: all three shadcn siblings (lucide, radix, sonner) live in a directory named after the unscoped package, which is the only case where the two resolvers differ. * Regenerate the user-app corpus manifest after the main merge `graderDigest` pins vitest.config.js. The merge kept main's manifest lines, which were generated before this branch's radix note reword, so all 19 digests were stale again. Only that field moves; the lockfile hash main regenerated is already correct.
This branch was previously deployed
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.
Summary
packages/shadcnandplayground/octanedepend on their@octanejs/lucide,@octanejs/radixand@octanejs/sonnersiblings throughworkspace:*instead of exact version pins.pnpm-lock.yamlregenerated: those three now link topackages/*rather than resolving from npm.Why
The release job failed on the frozen install.
changeset versionrewrote the pins (0.1.8 to 0.1.12, 0.1.12 to 0.1.16, 0.1.8 to 0.1.12), sopnpm-lock.yamlno longer matchedpackages/shadcn/package.jsonand every later pnpm command in the step aborted withERR_PNPM_OUTDATED_LOCKFILE.workspace:*is left alone bychangeset version, so the lockfile stays valid, and it is what every other package here uses.The pins were also doing something quieter: pnpm resolved those siblings from the npm registry, not the workspace (
version: 0.1.8(octane@packages+octane)in the lockfile), so shadcn and the playground built against stale published copies of source that lives in this checkout.Changes
packages/shadcn/package.json,playground/octane/package.json: three specifiers each toworkspace:*.pnpm-lock.yaml: the two importers now recordlink:../lucidestyle entries.@octanejs/shadcn.Validation
pnpm format:checkpnpm typecheck(not run in full; ranpnpm --dir packages/shadcn typecheck, clean against the workspace sources)pnpm testin full (not run: no runtime, compiler or SSR code in the diff)pnpm changeset:versionexits 0 with no "must depend on the current version" errors,git diff --checkclean,pnpm format:checkclean,pnpm install --frozen-lockfilepassespnpm packsubstitutes concrete versions (@octanejs/radix: 0.1.15, peeroctane: 0.1.16) with no unresolvedworkspace:orcatalog:protocols, which is whatvalidatePackedPackagegates onvitest --project shadcn --project shadcn-ssrpasses 136 tests against the now workspace-resolved siblingsRisk / follow-ups
packages/shadcn/scripts/build-registry.mjscopies the raw specifier into consumer-facing install specs, so regenerating the registry now would emit@octanejs/radix@workspace:*. The committed registry keeps its old pins and nothing gatesregistry:check, so this PR is safe. Fixed in Gate the shadcn registry and the workspace-sibling rule #291.workspace:*. Also in Gate the shadcn registry and the workspace-sibling rule #291.@octanejs/radixunaliased, which used to mean the published tarball and now meanspackages/radix. Tests pass either way; noted in Gate the shadcn registry and the workspace-sibling rule #291 for a maintainer call.