Skip to content

Commit a1fb042

Browse files
Compile full main package instead of single files (#1781)
* Build all files in fluent-manager. Signed-off-by: Josh Baird <[email protected]> * Apply suggestion from @marcofranssen Signed-off-by: Marco Franssen <[email protected]> * Apply suggestion from @marcofranssen Signed-off-by: Marco Franssen <[email protected]> * Apply suggestion from @marcofranssen Signed-off-by: Marco Franssen <[email protected]> * Apply suggestion from @marcofranssen Signed-off-by: Marco Franssen <[email protected]> --------- Signed-off-by: Josh Baird <[email protected]> Signed-off-by: Marco Franssen <[email protected]> Co-authored-by: Marco Franssen <[email protected]>
1 parent b4b2ead commit a1fb042

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ lint-config: golangci-lint ## Verify golangci-lint linter configuration
9696
##@ Build
9797

9898
binary:
99-
go build -o bin/fb-manager cmd/fluent-manager/main.go
100-
go build -o bin/fb-watcher cmd/fluent-watcher/fluentbit/main.go
101-
go build -o bin/fd-watcher cmd/fluent-watcher/fluentd/main.go
99+
go build -o bin/fb-manager ./cmd/fluent-manager
100+
go build -o bin/fb-watcher ./cmd/fluent-watcher/fluentbit
101+
go build -o bin/fd-watcher ./cmd/fluent-watcher/fluentd
102102

103103
verify: verify-crds verify-codegen
104104

@@ -109,9 +109,9 @@ verify-codegen:
109109
./hack/verify-codegen.sh
110110

111111
build: generate fmt vet ## Build manager binary.
112-
go build -o bin/fluent-manager cmd/fluent-manager/main.go
113-
go build -o bin/fb-watcher cmd/fluent-watcher/fluentbit/main.go
114-
go build -o bin/fd-watcher cmd/fluent-watcher/fluentd/main.go
112+
go build -o bin/fluent-manager ./cmd/fluent-manager
113+
go build -o bin/fb-watcher ./cmd/fluent-watcher/fluentbit
114+
go build -o bin/fd-watcher ./cmd/fluent-watcher/fluentd
115115

116116
run: manifests generate fmt vet ## Run a controller from your host.
117117
go run cmd/fluent-manager/main.go

0 commit comments

Comments
 (0)