Skip to content

chore: revert "chore: allow lefthook when CompileGitHubWorkflowsOnly"#674

Merged
talos-bot merged 1 commit into
siderolabs:mainfrom
majabojarska:chore/lefthook-gh-workflows-rev
Jul 1, 2026
Merged

chore: revert "chore: allow lefthook when CompileGitHubWorkflowsOnly"#674
talos-bot merged 1 commit into
siderolabs:mainfrom
majabojarska:chore/lefthook-gh-workflows-rev

Conversation

@majabojarska

Copy link
Copy Markdown
Member

This reverts commit d98557c.

Turns out the Talos-side configuration is way more blocking for having auto-generated lefthook.yml than I anticipated. The Makefile/golang outputs are not generated for Talos, they're hand-written and maintained. Therefore, the CompileLefthook callables attached to these outputs never execute, leading to an effectively empty lefthook.yml (just an empty JSON document {}).

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 wipe the lefthook.yml on every make rekres. Therefore, we need to revert this change.

@talos-bot talos-bot moved this from To Do to In Review in Planning Jul 1, 2026
@github-project-automation github-project-automation Bot moved this to To Do in Planning Jul 1, 2026
@majabojarska majabojarska force-pushed the chore/lefthook-gh-workflows-rev branch from 2c56d6d to 5939bf5 Compare July 1, 2026 15:35
Turns out the Talos-side configuration is way more blocking for having auto-generated `lefthook.yml` than I anticipated. The Makefile/golang outputs are not generated for Talos, they're hand-written and maintained. Therefore, the `CompileLefthook` callables attached to these outputs never execute, leading to an effectively empty lefthook.yml (just an empty JSON document `{}`).

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 wipe the lefthook.yml on every `make rekres`. Therefore, we need to revert this change.

Signed-off-by: Maja Bojarska <maja.bojarska@siderolabs.com>
@github-project-automation github-project-automation Bot moved this from In Review to Approved in Planning Jul 1, 2026
@majabojarska

Copy link
Copy Markdown
Member Author

/m

@talos-bot talos-bot merged commit 3c738c6 into siderolabs:main Jul 1, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Planning Jul 1, 2026
@majabojarska majabojarska deleted the chore/lefthook-gh-workflows-rev branch July 1, 2026 16:00
talos-bot pushed a commit to siderolabs/talos that referenced this pull request Jul 1, 2026
See siderolabs/kres#674 for more context on why
the lefthook.yml in Talos is not generated by kres.

Signed-off-by: Maja Bojarska <maja.bojarska@siderolabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants