Skip to content

nix: build fails — missing glob dependency in shared package #22867

@jerome-benoit

Description

@jerome-benoit

Description

nix build fails after the shared package filter fix (#22657 / #22665) because packages/shared/src/util/glob.ts imports glob but it is not listed in packages/shared/package.json dependencies.

In normal dev, this works via hoisting from packages/opencode. In the nix sandbox with --filter, shared's own dependencies must be explicit.

Cannot find package "glob" imported from /build/source/packages/shared/src/util/glob.ts

OpenCode version

v1.4.6 (dev branch, post #22665 merge)

Steps to reproduce

nix build github:anomalyco/opencode

Operating System

NixOS / any nix user

Terminal

N/A — build-time failure

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions