Skip to content

Commit

Permalink
fuckit
Browse files Browse the repository at this point in the history
  • Loading branch information
freggy committed Dec 10, 2024
1 parent 0b2b0d3 commit 22bfeee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ conf
work/
nodedev/ptpnat
/platformd

# testdata
repack-img.tar.gz
unpack-img.tar.gz
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
repos:
- repo: local
hooks:
- id: replace-file
name: replace testdata docker images
entry: bash -c 'echo "" > ./internal/image/testdata/repack-img.tar.gz && echo "" > ./internal/image/testdata/unpack-img.tar.gz'
language: system
- repo: https://github.com/golangci/golangci-lint
rev: v1.62.0
hooks:
Expand Down
1 change: 1 addition & 0 deletions internal/image/testdata/repack-img.tar.gz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions internal/image/testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import _ "embed"
//go:generate ./build-img.sh

//go:embed unpack-img.tar.gz
var UnpackImage []byte //nolint
var UnpackImage []byte

//go:embed repack-img.tar.gz
var RepackImage []byte //nolint
var RepackImage []byte
1 change: 1 addition & 0 deletions internal/image/testdata/unpack-img.tar.gz
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 22bfeee

Please sign in to comment.