fix(pre-commit): install vale-sync from the cmd/vale package (5.1) - #14799
Merged
DonLakeFlyer merged 2 commits intoAug 9, 2026
Conversation
The vale module root carries no Go package (the vale binary lives
under cmd/vale), so the hook's environment install fails:
go: module github.com/errata-ai/vale/v3@v3.14.2 found, but does
not contain package github.com/errata-ai/vale/v3
pre-commit aborts the whole run on the install error before a single
hook fires and exits with code 3, so every hook in the config is
silently skipped wherever this configuration runs, the CI runner
included. Installing the cmd/vale package restores the gate.
Three inline-bash hook entries run past the 200 column line limit yamllint enforces, so the configuration fails its own gate the first time it is linted as a changed file. Folded block scalars carry the same commands: YAML joins the folded lines with single spaces, so the entries shlex to byte-identical argv.
Contributor
|
See the Build Results workflow run for details. |
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.
Cherry-pick of #14753 to Stable_V5.1.