Skip to content

Commit

Permalink
scaffold: Don't hardcode the boilerplate path in the Makefile
Browse files Browse the repository at this point in the history
init has a --path argument that specifies where the boilerplate file should be
written to. Unforunately, the Makefile generation wasn't taking it into
account.
  • Loading branch information
dlespiau committed Sep 24, 2019
1 parent 855513f commit 4240869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scaffold/v2/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ vet:
# Generate code
generate: controller-gen
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths="./..."
$(CONTROLLER_GEN) object:headerFile={{printf "%q" .BoilerplatePath}} paths="./..."
# Build the docker image
docker-build: test
Expand Down

0 comments on commit 4240869

Please sign in to comment.