Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ repos:
- id: helm-schema-{{.}}
name: "generate + fix + normalize helm/{{.}}/values.schema.json"
language: golang
additional_dependencies: ['github.com/giantswarm/schemalint/v2@v2.6.1']
additional_dependencies: ['github.com/giantswarm/schemalint/v2@v2.6.2']
files: ^helm/{{.}}/(values\.yaml|\.schema\.yaml|values\.schema\.json)$
pass_filenames: false
require_serial: true
entry: sh -c
args:
- 'helm plugin list | grep -q "^schema[[:space:]]" || { echo "helm schema plugin missing, install it with: helm plugin install https://github.com/losisin/helm-values-schema-json"; exit 1; }; helm schema --config helm/{{.}}/.schema.yaml && python3 -c ''{{ $.RefFixPython }}'' helm/{{.}}/values.schema.json && schemalint normalize helm/{{.}}/values.schema.json -o helm/{{.}}/values.schema.json --force'
- repo: https://github.com/giantswarm/schemalint
rev: v2.6.1
rev: v2.6.2
hooks:
- id: schemalint-verify
pass_filenames: false
Expand Down
2 changes: 1 addition & 1 deletion pkg/gen/input/precommit/precommit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func Test_HelmSchemaFixHook(t *testing.T) {
"helm-values-schema-json/issues/317",
"schemalint normalize helm/test-chart/values.schema.json",
// schemalint is installed by the hook itself, so no new tooling is required.
"additional_dependencies: ['github.com/giantswarm/schemalint/v2@v2.6.1']",
"additional_dependencies: ['github.com/giantswarm/schemalint/v2@v2.6.2']",
"language: golang",
} {
if !strings.Contains(got, want) {
Expand Down