Skip to content

Commit

Permalink
Remove the hardcoded GOOS value when building the Linux binary to ena…
Browse files Browse the repository at this point in the history
…ble support for container image for ARM

Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Oct 25, 2023
1 parent fa1b74d commit 2f9965b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GOSEC ?= $(GOBIN)/gosec
GINKGO ?= $(GOBIN)/ginkgo
GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
GOVULN_MIN_VERSION = 17
GO_VERSION = 1.20
GO_VERSION = 1.21

default:
$(MAKE) build
Expand Down Expand Up @@ -76,7 +76,7 @@ release:
goreleaser release

build-linux:
CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=amd64 go build -ldflags=$(BUILDFLAGS) -o $(BIN) ./cmd/gosec/
CGO_ENABLED=$(CGO_ENABLED) GOOS=linux go build -ldflags=$(BUILDFLAGS) -o $(BIN) ./cmd/gosec/

image:
@echo "Building the Docker image..."
Expand Down

0 comments on commit 2f9965b

Please sign in to comment.