发布

  • [OPIK-7235] [INFRA] fix: make hooks uses pre-commit install -f to avoid migration mode (#7344)

    frostbyte_neo 发布于 2026-07-06 08:13:00 +00:00

    The pre-commit consolidation (OPIK 6980) left make hooks running plain
    pre-commit install. Contributors who still had the old .git/hooks/pre-commit
    get pre-commit's "migration mode": the old hook is moved to pre-commit.legacy
    and chained on every commit — and it calls scripts 6980 deleted, so it errors.
    Re-running make hooks didn't help (no -f).

    Use pre-commit install -f (no-op overwrite on a clean clone) and rm -f any
    leftover pre-commit.legacy.

    Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

    下载附件