mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
https://github.com/smallstep/cli step is a zero trust swiss army knife that integrates with step-ca for automated certificate management. testing/ closes !9249
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
This patch fixes some shell quoting issues. GOFLAGS was not being honored.
|
|
---
|
|
--- a/make/common.mk
|
|
+++ b/make/common.mk
|
|
@@ -26,7 +26,7 @@
|
|
|
|
DATE := $(shell date -u '+%Y-%m-%d %H:%M UTC')
|
|
LDFLAGS := -ldflags='-w -X "main.Version=$(VERSION)" -X "main.BuildTime=$(DATE)"'
|
|
-GOFLAGS := CGO_ENABLED=0
|
|
+_GOFLAGS := CGO_ENABLED=0
|
|
|
|
download:
|
|
$Q go mod download
|
|
@@ -36,12 +36,12 @@
|
|
|
|
$(PREFIX)bin/$(BINNAME): download $(call rwildcard,*.go)
|
|
$Q mkdir -p $(@D)
|
|
- $Q $(GOOS_OVERRIDE) $(GOFLAGS) go build -v -o $@ $(LDFLAGS) $(PKG)
|
|
+ $Q $(GOOS_OVERRIDE) $(_GOFLAGS) go build -v -o $@ $(LDFLAGS) $(PKG)
|
|
|
|
# Target to force a build of step without running tests
|
|
simple:
|
|
$Q mkdir -p bin/
|
|
- $Q $(GOOS_OVERRIDE) $(GOFLAGS) go build -v -o $(PREFIX)bin/$(BINNAME) $(LDFLAGS) $(PKG)
|
|
+ $Q $(GOOS_OVERRIDE) $(_GOFLAGS) go build -v -o $(PREFIX)bin/$(BINNAME) $(LDFLAGS) $(PKG)
|
|
@echo "Build Complete!"
|
|
|
|
.PHONY: build simple
|
|
@@ -59,14 +59,14 @@
|
|
# Test
|
|
#########################################
|
|
test:
|
|
- $Q $(GOFLAGS) go test -short -coverprofile=coverage.out ./...
|
|
+ $Q $(_GOFLAGS) go test -short -coverprofile=coverage.out ./...
|
|
|
|
.PHONY: test
|
|
|
|
integrate: integration
|
|
|
|
integration: bin/$(BINNAME)
|
|
- $Q $(GOFLAGS) go test -tags=integration ./integration/...
|
|
+ $Q $(_GOFLAGS) go test -tags=integration ./integration/...
|
|
|
|
.PHONY: integrate integration
|