Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Git-backed marketplace install fails: missing picomatch runtime dependency

Đang mở
#20 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@rooterkyberian đang làm issue này rồi.

Từ ngày 28/9/2026.

  • #21 của @rooterkyberian — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Reproduce the failure with the direct dist/cli.js command, then inspect package.json, src/rules/matcher.ts, dist/rules/matcher.js, and the README alongside the installed cache contents. Determine which supported installation path makes the hook run without the temporary workaround, and verify a clean Git-backed marketplace install succeeds.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Installing codex-rules from a Git-backed Codex marketplace succeeds, but its hooks immediately exit with code 1 because picomatch is not installed.

Environment
  • Codex CLI 0.154.0
  • macOS, Node.js 25.8.1
  • codex-rules 0.1.0, commit 7afdc9cdc4492f4fcf50843d2ca31ee7e4244470
  • Marketplace entry uses source: "url" pointing to this repository, pinned to that commit
Reproduction
  1. Add this repository to a Codex marketplace as a Git-backed plugin.
  2. Run codex plugin add codex-rules@<marketplace>.
  3. Start a conversation or submit a message. The UI shows Hook failed — hook exited with code 1.
  4. Running the installed hook directly reproduces the failure even with empty stdin:
node "$CODEX_HOME/plugins/cache/<marketplace>/codex-rules/0.1.0/dist/cli.js" hook user-prompt-submit </dev/null
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'picomatch' imported from
.../codex-rules/0.1.0/dist/rules/matcher.js
Findings
  • package.json correctly declares picomatch as a production dependency.
  • Both src/rules/matcher.ts and the committed dist/rules/matcher.js import it.
  • The installed cache contains package.json, package-lock.json, and dist, but no node_modules. This Git-backed installation did not install the npm dependencies.
  • The README states that the runtime has no npm production dependencies and needs no follow-up npm install, which contradicts the current artifact.
Expected behavior

A clean marketplace install should run its hooks successfully. Bundling the runtime dependency into the distributed JavaScript would make Git-backed installs self-contained; otherwise the installation instructions need an explicit supported dependency-installation step.

We are adding a temporary setup workaround to run npm ci --omit=dev --ignore-scripts --no-audit --no-fund in the installed plugin directory. Related installation documentation PR: #18.

Ngôn ngữ chính
TypeScript
Star
15
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của code-yeongyu/codex-rules

Tất cả issue của code-yeongyu/codex-rules

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.