tooling: mise run install fails when core.hooksPath is set outside the repo (prek hook install is fatal)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- git, python, typescript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Đọc các định nghĩa tác vụ mise ở thư mục gốc cho install và hooks:install, sau đó tái hiện với core.hooksPath được thiết lập toàn cục và chạy mise run install. Xác nhận việc cài đặt các dependency hoàn tất và tác vụ kết thúc thành công khi không thể cài đặt hook; hooks:install vẫn nên được cung cấp như một cách dành cho người đóng góp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Component: CDK / infrastructure (repo tooling: mise run install)
Describe the bug
The root install task ends with prek install --prepare-hooks. On machines where core.hooksPath is set at global or system scope (common on managed corporate machines that ship their own git hooks), prek refuses:
error: Refusing to install hooks because `core.hooksPath` is configured outside this repository.
[//:install] ERROR task failed
Because it is the last command of install, the whole task fails even though the Yarn workspaces and the agent's Python environment were installed successfully. Anyone who only wants to deploy (not contribute) is blocked by a contributor-only step, and the documented remedy in CONTRIBUTING.md (git config --unset-all core.hooksPath) is often not something they are allowed to do on a managed machine.
Expected behavior
mise run install succeeds and installs dependencies. Hook installation is either skipped with a clear warning when core.hooksPath is owned elsewhere, or split into its own task (hooks:install already exists).
Current behavior
mise run install exits non-zero after installing all dependencies, so scripts and guides that run it treat installation as failed.
Reproduction steps
git config --global core.hooksPath /some/other/dir(or a system-level equivalent).- Fresh clone,
mise run install. - Observe the failure from
prek install --prepare-hooks.
Possible solution
Make the hook step non-fatal in install, e.g. prek install --prepare-hooks || echo "warning: git hooks not installed (core.hooksPath is set elsewhere); see CONTRIBUTING.md", and keep hooks:install as the strict path for contributors. Never change the user's global/system git config automatically.
Environment
- macOS arm64 · mise 2026.10.18 · Commit
6dad935f(main)
- Ngôn ngữ chính
- TypeScript
- Star
- 165
- Fork
- 50
- Merge trung bình
- 7 giờ 32 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọ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 aws-samples/sample-autonomous-cloud-coding-agents
-
cdk: support Docker-compatible engines such as Finch (clean:disk hard-codes docker)Có thể đã có người làm @alvarohare đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#969 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cdk(bootstrap): bootstrap:generate fetches an unpinned tsx via npx and prompts in non-interactive runsCó thể đã có người làm @alvarohare đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws-samples/sample-autonomous-cloud-coding-agents#967 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(cdk): lambda-microvm grants hardcode the us. inference-profile prefix instead of bedrockGeoRegionCó thể đã có người làm @proton0210 đã nhận 11 ngày trước. Đang mởinfra-cdk P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
aws-samples/sample-autonomous-cloud-coding-agents#955 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws-samples/sample-autonomous-cloud-coding-agents#908 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug v1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#886 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws-samples/sample-autonomous-cloud-coding-agents
Issue tương tự
-
bug ui-dashboard
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
caelestia-dots/caelestia#534 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(scripts): install-git-hooks.sh points core.hooksPath at .githooks/, which does not existĐang mởarea: scripts bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
tdk-landscape/tdk-cli-core#2706 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bobadilla-tech/biasmarket.com#402 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
javvadivijayprasad/sel2pw#28 ·