Skip to content

Commit 321974a

Browse files
committed
Fixed build on non-linux platform
1 parent 36433ed commit 321974a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ dashboard/assets.go: $(DASHBOARDSOURCES) $(DASHBOARDDIR)/Dockerfile.build
182182

183183
$(BIN): $(SOURCES) dashboard/assets.go
184184
@mkdir -p $(BINDIR)
185-
CGO_ENABLED=0 go build -installsuffix netgo -ldflags "-X main.projectVersion=$(VERSION) -X main.projectBuild=$(COMMIT)" -o $(BIN) $(REPOPATH)
185+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -installsuffix netgo -ldflags "-X main.projectVersion=$(VERSION) -X main.projectBuild=$(COMMIT)" -o $(BIN) $(REPOPATH)
186186

187187
.PHONY: docker
188188
docker: check-vars $(BIN)

0 commit comments

Comments
 (0)