Skip to content

Commit f40239b

Browse files
authored
PMM-13959 remove GSSAPI from main builds (#1083)
* set up gssapi in separate build binary * fix cover.out artifact
1 parent 756d300 commit f40239b

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Upload coverage results
6262
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
6363
with:
64-
file: cover.out
64+
files: cover.out
6565
flags: agent
6666
env_vars: GO_VERSION,TEST_MONGODB_IMAGE
6767
fail_ci_if_error: false

.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)