Skip to content

Commit b52e0a4

Browse files
committed
set up gssapi in separate build binary
1 parent 756d300 commit b52e0a4

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.goreleaser.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@ dist: build
22
version: 2
33
builds:
44
- binary: mongodb_exporter
5+
env:
6+
goos:
7+
- linux
8+
- darwin
9+
- windows
10+
goarch:
11+
- amd64
12+
- arm
13+
- arm64
14+
goarm:
15+
- 7
16+
ignore:
17+
- goos: darwin
18+
goarch: arm
19+
flags:
20+
- -v
21+
ldflags:
22+
- -s -w -X main.version=v{{.Version}} -X main.commit={{.ShortCommit}} -X main.buildDate={{.Date}}
23+
- binary: mongodb_exporter.gssapi
524
env:
625
- CGO_ENABLED=1
726
goos:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ init: ## Install linters
7171
cd tools && go generate -x -tags=tools
7272

7373
build: ## Compile using plain go build
74-
CGO_ENABLED=1 go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/mongodb_exporter -tags gssapi
74+
go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/mongodb_exporter
7575

7676
release: ## Build the binaries using goreleaser
7777
docker run --rm --privileged \

0 commit comments

Comments
 (0)