Skip to content

Commit a4ef700

Browse files
authored
build: Enable building binary only on macos (#918)
Current config only allows building local binaries on Linux machines so adding config to allow building binaries on macos without changing the release config (and hence still only releasing linux binaries as required).
1 parent 71431ac commit a4ef700

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

make/goreleaser.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ build-snapshot: go-generate ; $(info $(M) building snapshot $*)
1616
--snapshot \
1717
--clean \
1818
--parallelism=$(GORELEASER_PARALLELISM) \
19+
--config=<(env GOOS=$(shell go env GOOS) gojq --yaml-input --yaml-output '.builds[0].goos |= (. + [env.GOOS] | unique)' .goreleaser.yml) \
1920
$(if $(BUILD_ALL),,--single-target)
2021

2122
.PHONY: release

0 commit comments

Comments
 (0)