Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

tooling: mise run install fails when core.hooksPath is set outside the repo (prek hook install is fatal)

オープン 初心者向け
#968 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, python, typescript
領域
tooling

調査の方向性

ルートにある install と hooks:install の mise タスク定義を読み、core.hooksPath をグローバルに設定して再現したうえで、mise run install を実行してください。フックのインストールが利用できない場合でも依存関係のインストールが完了し、タスクが正常に終了することを確認してください。hooks:install はコントリビューター向けの手段として引き続き利用可能にしてください。

索引モデルが issue の本文から書いたものです。

説明

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

  1. git config --global core.hooksPath /some/other/dir (or a system-level equivalent).
  2. Fresh clone, mise run install.
  3. 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)
主要言語
TypeScript
スター
165
フォーク
50
平均マージ
6時間 41分
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws-samples/sample-autonomous-cloud-coding-agents のほかの issue

aws-samples/sample-autonomous-cloud-coding-agents の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。