Git-backed marketplace install fails: missing picomatch runtime dependency
Đá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
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
- Add this repository to a Codex marketplace as a Git-backed plugin.
- Run
codex plugin add codex-rules@<marketplace>. - Start a conversation or submit a message. The UI shows
Hook failed — hook exited with code 1. - 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.jsoncorrectly declarespicomatchas a production dependency.- Both
src/rules/matcher.tsand the committeddist/rules/matcher.jsimport it. - The installed cache contains
package.json,package-lock.json, anddist, but nonode_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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của code-yeongyu/codex-rules
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
code-yeongyu/codex-rules#19 · 1 reaction ·
Tất cả issue của code-yeongyu/codex-rules
Issue tương tự
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
lingdojo/kana-dojo#32663 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Admin: Title Separator field can't be cleared (input falls back to "|")Có thể đã có người làm @emdashbot đã nhận hôm nay. Đang mởbot:bug bot:in-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
emdash-cms/emdash#4236 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PHP workflow streaming requests buffer the full SSE responseCó thể đã có người làm @Winoren đã nhận hôm nay. Đang mởreview: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
langgenius/dify#44270 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:holodeck review-finding
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
hyperdrive-technology/holodeck#142 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
session-worker-compile.yml uses a floating oven-sh/setup-bun@v2 tag instead of the pinned SHAĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
code-yeongyu/senpi#3573 ·
Maintainer thường phản hồi trong vòng 1 ngày