Skip to content

Commit

Permalink
rhel: update generate directive
Browse files Browse the repository at this point in the history
This makes the shell command also use `go run` and puts the `file2fuzz`
command in the `tools.go` file. The dependency was already indirectly
tracked by including the `stringer` command.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Mar 8, 2023
1 parent cb4bec2 commit 8abc20e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rhel/dockerfile/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ func FuzzLex(f *testing.F) {
})
}

//go:generate sh -c "file2fuzz -o testdata/fuzz/FuzzLex $(ls -1 testdata/Dockerfile* | grep -v [.]want)"
//go:generate sh -c "go run golang.org/x/tools/cmd/file2fuzz -o testdata/fuzz/FuzzLex $(ls -1 testdata/Dockerfile* | grep -v [.]want)"
1 change: 1 addition & 0 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ package claircore

import (
_ "github.com/golang/mock/mockgen"
_ "golang.org/x/tools/cmd/file2fuzz"
_ "golang.org/x/tools/cmd/stringer"
)

0 comments on commit 8abc20e

Please sign in to comment.