From 0521756dd92d8b5fa373ca5db60726a83d030889 Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Sun, 31 May 2020 17:27:05 -0700 Subject: [PATCH] Use 'rm' from path in go generate /bin/rm is less portable. On some distros, like nixos, it doesn't exist at all. Signed-off-by: Euan Kemp --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 10624f69bf..c7e02278f1 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ //go:generate go run pkg/codegen/cleanup/main.go -//go:generate /bin/rm -rf pkg/generated +//go:generate rm -rf pkg/generated //go:generate go run pkg/codegen/main.go //go:generate go fmt pkg/deploy/zz_generated_bindata.go //go:generate go fmt pkg/static/zz_generated_bindata.go