Skip to content

Commit e130732

Browse files
committed
fixup! build: Add pre-commit hook for devbox.lock file
1 parent aee30a4 commit e130732

File tree

3 files changed

+92
-64
lines changed

3 files changed

+92
-64
lines changed

.github/workflows/checks.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,6 @@ jobs:
171171
env:
172172
SKIP: no-commit-to-branch,golangci-lint,actionlint-system
173173

174-
- name: Get changed files since last commit
175-
id: changed-files
176-
uses: tj-actions/changed-files@v44
177-
- name: Fail if there are changed files
178-
if: steps.changed-files.outputs.any_changed
179-
uses: actions/github-script@v3
180-
with:
181-
script: |
182-
core.setFailed('Discovered changed files: ${{ steps.changed-files.outputs.all_changed_files }}')
183-
184174
lint-test-helm:
185175
runs-on: ubuntu-22.04
186176
steps:

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ repos:
4040
language: system
4141
files: "^(hack/addons/|charts/cluster-api-runtime-extensions-nutanix/templates/.+|make/addons.mk$)"
4242
pass_filenames: false
43+
- id: check-devbox-lock
44+
name: check-devbox-lock
45+
entry: devbox install
46+
language: system
47+
files: "^devbox.(yaml|lock)$"
48+
pass_filenames: false
4349
- repo: https://github.com/tekwizely/pre-commit-golang
4450
rev: v1.0.0-rc.1
4551
hooks:

devbox.lock

Lines changed: 86 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,6 @@
4141
}
4242
}
4343
},
44-
"clusterctl@latest": {
45-
"last_modified": "2024-03-15T20:27:35Z",
46-
"resolved": "github:NixOS/nixpkgs/9af9c1c87ed3e3ed271934cb896e0cdd33dae212#clusterctl",
47-
"source": "devbox-search",
48-
"version": "1.6.3",
49-
"systems": {
50-
"aarch64-darwin": {
51-
"store_path": "/nix/store/6hsi8bj8ddbrv29jff467q1rqcfgs964-clusterctl-1.6.3"
52-
},
53-
"aarch64-linux": {
54-
"store_path": "/nix/store/jysji089cqrygcwl2ryvbb0sa3cjj8vv-clusterctl-1.6.3"
55-
},
56-
"x86_64-darwin": {
57-
"store_path": "/nix/store/gbch3dp061am97j79b56pp07121j781k-clusterctl-1.6.3"
58-
},
59-
"x86_64-linux": {
60-
"store_path": "/nix/store/1xy66gcyxaqjhb5h15slyxzw64d920c6-clusterctl-1.6.3"
61-
}
62-
}
63-
},
6444
"coreutils@latest": {
6545
"last_modified": "2024-03-11T21:09:54Z",
6646
"resolved": "github:NixOS/nixpkgs/bf8462aeba50cc753971480f613fbae0747cffc0#coreutils",
@@ -361,23 +341,51 @@
361341
}
362342
}
363343
},
364-
"hugo@latest": {
365-
"last_modified": "2024-03-17T10:00:07Z",
366-
"resolved": "github:NixOS/nixpkgs/6af7e814afb3b62171eee1edc31989ee61528d25#hugo",
344+
"hugo@0.124.1": {
345+
"last_modified": "2024-04-01T22:53:36-04:00",
346+
"resolved": "github:NixOS/nixpkgs/080a4a27f206d07724b88da096e27ef63401a504#hugo",
367347
"source": "devbox-search",
368-
"version": "0.124.0",
348+
"version": "0.124.1",
369349
"systems": {
370350
"aarch64-darwin": {
371-
"store_path": "/nix/store/rfkfvwigv0282mw24n3cdym7cyi542jy-hugo-0.124.0"
351+
"outputs": [
352+
{
353+
"name": "out",
354+
"path": "/nix/store/svp323dq8pkvkdpgwm6kacirvj306gk7-hugo-0.124.1",
355+
"default": true
356+
}
357+
],
358+
"store_path": "/nix/store/svp323dq8pkvkdpgwm6kacirvj306gk7-hugo-0.124.1"
372359
},
373360
"aarch64-linux": {
374-
"store_path": "/nix/store/0rnv4sichypqbprm4nqd0jjc27z5286c-hugo-0.124.0"
361+
"outputs": [
362+
{
363+
"name": "out",
364+
"path": "/nix/store/23g4yy8nljj46iahh4h6hr9q5sbwl0sx-hugo-0.124.1",
365+
"default": true
366+
}
367+
],
368+
"store_path": "/nix/store/23g4yy8nljj46iahh4h6hr9q5sbwl0sx-hugo-0.124.1"
375369
},
376370
"x86_64-darwin": {
377-
"store_path": "/nix/store/ip5zhc1rf2li8cmjwffjrj42r7nkkj4a-hugo-0.124.0"
371+
"outputs": [
372+
{
373+
"name": "out",
374+
"path": "/nix/store/nhfnhk99rwq5ving0adayix38m4kfkpq-hugo-0.124.1",
375+
"default": true
376+
}
377+
],
378+
"store_path": "/nix/store/nhfnhk99rwq5ving0adayix38m4kfkpq-hugo-0.124.1"
378379
},
379380
"x86_64-linux": {
380-
"store_path": "/nix/store/8syg9xrkp3nbpb1r4b469068kvk8gq2a-hugo-0.124.0"
381+
"outputs": [
382+
{
383+
"name": "out",
384+
"path": "/nix/store/4rwm1ni7hnhjlpn1v3w6g376hzkks7za-hugo-0.124.1",
385+
"default": true
386+
}
387+
],
388+
"store_path": "/nix/store/4rwm1ni7hnhjlpn1v3w6g376hzkks7za-hugo-0.124.1"
381389
}
382390
}
383391
},
@@ -461,26 +469,6 @@
461469
}
462470
}
463471
},
464-
"kubernetes-controller-tools@latest": {
465-
"last_modified": "2024-03-08T13:51:52Z",
466-
"resolved": "github:NixOS/nixpkgs/a343533bccc62400e8a9560423486a3b6c11a23b#kubernetes-controller-tools",
467-
"source": "devbox-search",
468-
"version": "0.14.0",
469-
"systems": {
470-
"aarch64-darwin": {
471-
"store_path": "/nix/store/jblk86f5bi2dwg2w8g42xl9mpw1yrbi4-controller-tools-0.14.0"
472-
},
473-
"aarch64-linux": {
474-
"store_path": "/nix/store/sq48wn8yyqkya8as690h61d1dlxwlkbi-controller-tools-0.14.0"
475-
},
476-
"x86_64-darwin": {
477-
"store_path": "/nix/store/nm2vx0f6ajmqpbi2c6z8wani5f1fdqb4-controller-tools-0.14.0"
478-
},
479-
"x86_64-linux": {
480-
"store_path": "/nix/store/f8h9pj08ksm49v980yb0slzrbpqqc98r-controller-tools-0.14.0"
481-
}
482-
}
483-
},
484472
"kubernetes-helm@latest": {
485473
"last_modified": "2024-03-14T09:34:31Z",
486474
"resolved": "github:NixOS/nixpkgs/bd5ddf2c6bfafff031edf80221e1ee94e86ca10a#kubernetes-helm",
@@ -602,22 +590,66 @@
602590
}
603591
},
604592
"yamllint@latest": {
605-
"last_modified": "2024-03-08T13:51:52Z",
606-
"resolved": "github:NixOS/nixpkgs/a343533bccc62400e8a9560423486a3b6c11a23b#yamllint",
593+
"last_modified": "2024-04-19T17:36:04-04:00",
594+
"resolved": "github:NixOS/nixpkgs/92d295f588631b0db2da509f381b4fb1e74173c5#yamllint",
607595
"source": "devbox-search",
608596
"version": "1.35.1",
609597
"systems": {
610598
"aarch64-darwin": {
611-
"store_path": "/nix/store/shw3d5hqv1kjsxgs6favbb6icdf5zspz-python3.11-yamllint-1.35.1"
599+
"outputs": [
600+
{
601+
"name": "out",
602+
"path": "/nix/store/vd7zfjfphrbp62z5a355km2k1b5pcna2-python3.11-yamllint-1.35.1",
603+
"default": true
604+
},
605+
{
606+
"name": "dist",
607+
"path": "/nix/store/81v5lk1warbhybasxf50af3p1bckypri-python3.11-yamllint-1.35.1-dist"
608+
}
609+
],
610+
"store_path": "/nix/store/vd7zfjfphrbp62z5a355km2k1b5pcna2-python3.11-yamllint-1.35.1"
612611
},
613612
"aarch64-linux": {
614-
"store_path": "/nix/store/qhciblsdwcx382ybhv4qy3pv321rprpn-python3.11-yamllint-1.35.1"
613+
"outputs": [
614+
{
615+
"name": "out",
616+
"path": "/nix/store/alway1qh97cggix9vmfpscs22hzflc77-python3.11-yamllint-1.35.1",
617+
"default": true
618+
},
619+
{
620+
"name": "dist",
621+
"path": "/nix/store/5y3sw452d4anxs88j15vissb7q6qyi5a-python3.11-yamllint-1.35.1-dist"
622+
}
623+
],
624+
"store_path": "/nix/store/alway1qh97cggix9vmfpscs22hzflc77-python3.11-yamllint-1.35.1"
615625
},
616626
"x86_64-darwin": {
617-
"store_path": "/nix/store/0qjkix7ixdmh056zg2w98yqfx31ip722-python3.11-yamllint-1.35.1"
627+
"outputs": [
628+
{
629+
"name": "out",
630+
"path": "/nix/store/i67vc49gcvlvx1z8is15nb3k5yqvnqjr-python3.11-yamllint-1.35.1",
631+
"default": true
632+
},
633+
{
634+
"name": "dist",
635+
"path": "/nix/store/zclqzl9lfajahf4pxw88gv1k52gv1cx4-python3.11-yamllint-1.35.1-dist"
636+
}
637+
],
638+
"store_path": "/nix/store/i67vc49gcvlvx1z8is15nb3k5yqvnqjr-python3.11-yamllint-1.35.1"
618639
},
619640
"x86_64-linux": {
620-
"store_path": "/nix/store/04jdxm8pyzbsg9vjgs0y1piglnn6bzny-python3.11-yamllint-1.35.1"
641+
"outputs": [
642+
{
643+
"name": "out",
644+
"path": "/nix/store/6bak83f1ib271wfl5ybw4m7vw5qr34kk-python3.11-yamllint-1.35.1",
645+
"default": true
646+
},
647+
{
648+
"name": "dist",
649+
"path": "/nix/store/hl6l62im8mnxldvqpifi62n8abnwbi93-python3.11-yamllint-1.35.1-dist"
650+
}
651+
],
652+
"store_path": "/nix/store/6bak83f1ib271wfl5ybw4m7vw5qr34kk-python3.11-yamllint-1.35.1"
621653
}
622654
}
623655
}

0 commit comments

Comments
 (0)