Generate Puppet resource types natively before the env swap
- add gentypes: a static Go port of `puppet generate types` for classic and Resource API types - run it in prepare when w10k.generate_types is set; a failure fails the env and keeps the old link - confine reads to the worktree and module cache, refuse a committed .resource_types symlink - test against real puppet output for a vendored Apache-2.0 type set
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
exclude: ^internal/gentypes/testdata/
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
|
||||
Reference in New Issue
Block a user