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 <euank@euank.com>
pull/2456/head
Euan Kemp 2020-05-31 17:27:05 -07:00 committed by Brad Davidson
parent 523ccaf3f2
commit 0521756dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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