Skip to content

Commit 9267ae2

Browse files
committed
fixup! build: Add pre-commit hook for devbox.lock file
1 parent 2365542 commit 9267ae2

File tree

3 files changed

+56
-16
lines changed

3 files changed

+56
-16
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: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -590,22 +590,66 @@
590590
}
591591
},
592592
"yamllint@latest": {
593-
"last_modified": "2024-03-08T13:51:52Z",
594-
"resolved": "github:NixOS/nixpkgs/a343533bccc62400e8a9560423486a3b6c11a23b#yamllint",
593+
"last_modified": "2024-04-19T17:36:04-04:00",
594+
"resolved": "github:NixOS/nixpkgs/92d295f588631b0db2da509f381b4fb1e74173c5#yamllint",
595595
"source": "devbox-search",
596596
"version": "1.35.1",
597597
"systems": {
598598
"aarch64-darwin": {
599-
"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"
600611
},
601612
"aarch64-linux": {
602-
"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"
603625
},
604626
"x86_64-darwin": {
605-
"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"
606639
},
607640
"x86_64-linux": {
608-
"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"
609653
}
610654
}
611655
}

0 commit comments

Comments
 (0)