Skip to content

Depend on workspace siblings in @octanejs/shadcn - #289

Merged
trueadm merged 2 commits into
mainfrom
fix/shadcn-workspace-deps
Jul 26, 2026
Merged

trueadm merged 2 commits into
mainfrom
fix/shadcn-workspace-deps

Conversation

@WebEferen

@WebEferen WebEferen commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • packages/shadcn and playground/octane depend on their @octanejs/lucide, @octanejs/radix and @octanejs/sonner siblings through workspace:* instead of exact version pins.
  • pnpm-lock.yaml regenerated: those three now link to packages/* rather than resolving from npm.

Why

The release job failed on the frozen install. changeset version rewrote the pins (0.1.8 to 0.1.12, 0.1.12 to 0.1.16, 0.1.8 to 0.1.12), so pnpm-lock.yaml no longer matched packages/shadcn/package.json and every later pnpm command in the step aborted with ERR_PNPM_OUTDATED_LOCKFILE. workspace:* is left alone by changeset 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 to workspace:*.
  • pnpm-lock.yaml: the two importers now record link:../lucide style entries.
  • Changeset: patch for @octanejs/shadcn.

Validation

  • pnpm format:check
  • pnpm typecheck (not run in full; ran pnpm --dir packages/shadcn typecheck, clean against the workspace sources)
  • pnpm test in full (not run: no runtime, compiler or SSR code in the diff)
  • release replay of the failed CI step: pnpm changeset:version exits 0 with no "must depend on the current version" errors, git diff --check clean, pnpm format:check clean, pnpm install --frozen-lockfile passes
  • packed tarball: pnpm pack substitutes concrete versions (@octanejs/radix: 0.1.15, peer octane: 0.1.16) with no unresolved workspace: or catalog: protocols, which is what validatePackedPackage gates on
  • after the fact, on the follow-up branch: vitest --project shadcn --project shadcn-ssr passes 136 tests against the now workspace-resolved siblings

Risk / follow-ups

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.
@vercel

vercel Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview, Comment Jul 26, 2026 8:09pm
octane-website-mcp Ready Ready Preview, Comment Jul 26, 2026 8:09pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 26, 2026 20:08 Inactive
@trueadm
trueadm merged commit 5fc18b7 into main Jul 26, 2026
13 checks passed
@trueadm
trueadm deleted the fix/shadcn-workspace-deps branch July 26, 2026 20:09
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 26, 2026 20:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 26, 2026 20:09 Inactive
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

2 inactive deployments
Preview – octane-website — e28c5bc0 Deployed Jul 26, 2026 by vercel[bot]
Preview – octane-website-mcp — e28c5bc0 Deployed Jul 26, 2026 by vercel[bot]
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.

2 participants