Skip to content
Permalink
Browse files

Change makefile in v2 scaffolding to use ./...

Previously, we had some spots where we were using `./api/...` and
`./controllers/...` specifically.  Using `./...` instead allows us to
handle cases where we're lacking `api/`, and should otherwise be fine
since we don't have a vendor directory.
  • Loading branch information...
DirectXMan12 committed Aug 14, 2019
1 parent 97d6111 commit 6bb1680964209e398a536605d8a1d160d1a037d1
Showing with 4 additions and 4 deletions.
  1. +2 −2 pkg/scaffold/v2/makefile.go
  2. +2 −2 testdata/project-v2/Makefile
@@ -59,7 +59,7 @@ all: manager
# Run tests
test: generate fmt vet manifests
go test ./api/... ./controllers/... -coverprofile cover.out
go test ./... -coverprofile cover.out
# Build manager binary
manager: generate fmt vet
@@ -92,7 +92,7 @@ vet:
# Generate code
generate: controller-gen
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./api/...
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths="./..."
# Build the docker image
docker-build: test
@@ -15,7 +15,7 @@ all: manager

# Run tests
test: generate fmt vet manifests
go test ./api/... ./controllers/... -coverprofile cover.out
go test ./... -coverprofile cover.out

# Build manager binary
manager: generate fmt vet
@@ -48,7 +48,7 @@ vet:

# Generate code
generate: controller-gen
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths=./api/...
$(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths="./..."

# Build the docker image
docker-build: test

0 comments on commit 6bb1680

Please sign in to comment.
You can’t perform that action at this time.