Skip to content

Commit

Permalink
Fix promu config (prometheus#1119)
Browse files Browse the repository at this point in the history
Rename promu no-cgo config to default promu name to avoid crossbuild
problems.

Signed-off-by: Ben Kochie <superq@gmail.com>
  • Loading branch information
SuperQ authored Oct 20, 2018
1 parent 0da9d24 commit 7519967
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- checkout
- run: make promu
- run: promu --config .promu-no-cgo.yml crossbuild -v --go 1.11
- run: promu crossbuild -v --go 1.11
- run: promu --config .promu-cgo.yml crossbuild -v --go 1.11
- persist_to_workspace:
root: .
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ endif

# Use CGO for non-Linux builds.
ifeq ($(GOOS), linux)
PROMU_CONF ?= .promu-no-cgo.yml
PROMU_CONF ?= .promu.yml
else
ifndef GOOS
ifeq ($(OS_detected), Linux)
PROMU_CONF ?= .promu-no-cgo.yml
PROMU_CONF ?= .promu.yml
else
PROMU_CONF ?= .promu-cgo.yml
endif
Expand Down

0 comments on commit 7519967

Please sign in to comment.