make generate: don't error when find does not find any file (#9413)
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
This commit is contained in:
parent
fcf7e634d9
commit
f27d9ab35e
4
Makefile
4
Makefile
|
@ -120,9 +120,9 @@ fmt-examples:
|
||||||
# source files.
|
# source files.
|
||||||
generate: install-gen-deps ## Generate dynamically generated code
|
generate: install-gen-deps ## Generate dynamically generated code
|
||||||
@echo "==> removing autogenerated markdown..."
|
@echo "==> removing autogenerated markdown..."
|
||||||
@find website/pages/ -type f | xargs grep -l '^<!-- Code generated' | xargs rm
|
@find website/pages/ -type f | xargs grep -l '^<!-- Code generated' | xargs rm -f
|
||||||
@echo "==> removing autogenerated code..."
|
@echo "==> removing autogenerated code..."
|
||||||
@find post-processor common helper template builder provisioner -type f | xargs grep -l '^// Code generated' | xargs rm
|
@find post-processor common helper template builder provisioner -type f | xargs grep -l '^// Code generated' | xargs rm -f
|
||||||
go generate ./...
|
go generate ./...
|
||||||
go fmt common/bootcommand/boot_command.go
|
go fmt common/bootcommand/boot_command.go
|
||||||
go run ./cmd/generate-fixer-deprecations
|
go run ./cmd/generate-fixer-deprecations
|
||||||
|
|
Loading…
Reference in New Issue