Browse Source

Merge pull request #11694 from roidelapluie/windns

Do not build with netgo on Windows
pull/11697/head
Julien Pivotto 2 years ago committed by GitHub
parent
commit
de25530d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .promu.yml
  2. 2
      Makefile.common

8
.promu.yml

@ -10,7 +10,13 @@ build:
path: ./cmd/prometheus
- name: promtool
path: ./cmd/promtool
flags: -a -tags netgo,builtinassets
tags:
all:
- netgo
- builtinassets
windows:
- builtinassets
flags: -a
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}

2
Makefile.common

@ -55,7 +55,7 @@ ifneq ($(shell which gotestsum),)
endif
endif
PROMU_VERSION ?= 0.13.0
PROMU_VERSION ?= 0.14.0
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
SKIP_GOLANGCI_LINT :=

Loading…
Cancel
Save