mirror of
https://github.com/securego/gosec.git
synced 2025-03-19 21:08:30 +02:00
Remove the hardcoded GOOS value when building the Linux binary to enable support for container image for ARM
Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
parent
fa1b74d4fc
commit
2f9965bfbd
4
Makefile
4
Makefile
@ -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
|
||||
@ -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..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user