Skip to content

Commit 2c56d6d

Browse files
committed
chore: revert "chore: allow lefthook when compilegithubworkflowsonly"
This reverts commit d98557c. Turns out the Talos-side configuration is way more blocking for auto-generated lefthook.yml that I initially expected. The Makefile/golang outputs are not generated for Talos, they're maintained manually. Therefore, the CompileLefthook callables attached to these outputs never execute, leading to an effectively empty lefthook.yml (just an empty JSON {}). For the time being, it's far more viable to manually add a lefthook config for Talos. Having that config generated for "GH workflow only" would go wipe the lefthook.yml on every `make rekres`. Therefore, we need to revert this change.
1 parent d98557c commit 2c56d6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/kres/cmd/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ func runGen() error {
7777
output.Wrap(sops.NewOutput()),
7878
output.Wrap(renovate.NewOutput()),
7979
output.Wrap(conform.NewOutput()),
80-
output.Wrap(lefthook.NewOutput()),
8180
}
8281

8382
if !options.CompileGithubWorkflowsOnly {
@@ -93,6 +92,7 @@ func runGen() error {
9392
output.Wrap(release.NewOutput()),
9493
output.Wrap(markdownlint.NewOutput()),
9594
output.Wrap(template.NewOutput()),
95+
output.Wrap(lefthook.NewOutput()),
9696
)
9797
}
9898

0 commit comments

Comments
 (0)