build: auto-install Husky.NET git hooks on build#11
Merged
Conversation
…gets) Makes the pre-push guard hands-off — the hook installs on local build (skipped in CI, never fails the build). Pairs with the .husky/ committed earlier. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ChrisonSimtian
added a commit
that referenced
this pull request
Jun 30, 2026
The husky-autoinstall change (#11) overwrote .config/dotnet-tools.json with only husky, dropping the microsoft.openapi.kiota entry. But UnifiSharp.Api's build runs `dotnet kiota generate` (Generated/ is gitignored), so every CI build since has failed with "dotnet-kiota does not exist" (MSB3073) — main red since 2026-06-29. Re-pin kiota 1.31.1 (the version that was there) alongside husky. Verified: full clean (rm obj/bin/Generated) → dotnet tool restore → build -c Release regenerates the client and compiles; tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 30, 2026
ChrisonSimtian
added a commit
that referenced
this pull request
Jun 30, 2026
The husky-autoinstall change (#11) overwrote .config/dotnet-tools.json with only husky, dropping the microsoft.openapi.kiota entry. But UnifiSharp.Api's build runs `dotnet kiota generate` (Generated/ is gitignored), so every CI build since has failed with "dotnet-kiota does not exist" (MSB3073) — main red since 2026-06-29. Re-pin kiota 1.31.1 (the version that was there) alongside husky. Verified: full clean (rm obj/bin/Generated) → dotnet tool restore → build -c Release regenerates the client and compiles; tests pass. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hands-off activation for the pre-push guard: installs the hook on local build (skipped in CI, never fails the build). Pairs with the
.husky/committed earlier.