Skip to content

Two Sources Disagree on What Generates .husky/_/husky.sh #1195

Closed as duplicate

Description

@ptr727

The hub's own .husky/pre-commit says, at lines 5-6:

# It deliberately does not source `_/husky.sh`.
# That file is gitignored and arrives with an npm install this repository does not have.

GOVERNANCE.md "Running the Linters Locally" and catalog/snippets/husky/README.md both attribute it to Husky.Net instead: dotnet tool restore then dotnet husky install is what generates .husky/_/husky.sh. #1186 leaned on that attribution when it made the tool manifest the snippet's selection condition.

Both cannot be the reason the file appears. npm husky and Husky.Net are different tools that happen to use the same directory and the same generated filename, which is most likely how the two descriptions ended up side by side.

The consequence is small but real: the hub's comment is the one a reader meets first when looking at a working example of the third hook shape, and it explains that shape's central design decision (not sourcing that file) with what looks like the wrong tool. If the hub genuinely has no npm husky, the sentence describes a mechanism this repo never had.

This is the same class of contradiction #1158 covered, two sources disagreeing so no single wording can be right, and it wants the same treatment: settle which tool generates it here, then make both sources say that.

Surfaced by the canonical-content review on #1186 and again on #1189.

Activity

  1. added
    prose
    on Sep 5, 2026
  2. ptr727 commented on Sep 5, 2026

    @ptr727
    OwnerAuthor

    Rolled up per #1315 into the unit tracker(s) #1365: every finding this issue enumerates appears there as a numbered line naming this issue. Closing as a duplicate of those trackers so no finding is lost and this bundle stops being a unit of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    prose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions