Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
* Drop /vendor.
* Update Go modules.
* Add more Docker archs.
* Bump Prometheus Orb version.

#209

Signed-off-by: Ben Kochie <[email protected]>
  • Loading branch information
SuperQ committed Mar 12, 2021
1 parent 076b0fe commit 498b0a2
Show file tree
Hide file tree
Showing 696 changed files with 13 additions and 251,746 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
version: 2.1

orbs:
prometheus: prometheus/prometheus@0.4.0
prometheus: prometheus/prometheus@0.9.0

jobs:
test:
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
docker:
- image: circleci/golang:1.15
- image: circleci/golang:1.16

steps:
- prometheus/setup_environment
Expand Down
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
run:
modules-download-mode: vendor

# Run only staticcheck for now. Additional linters will be enabled one-by-one.
linters:
enable:
Expand Down
4 changes: 2 additions & 2 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
go:
# Whenever the Go version is updated here,
# .circle/config.yml should also be updated.
version: 1.15
version: 1.16
repository:
path: github.com/prometheus/haproxy_exporter
build:
flags: -mod=vendor -a -tags netgo
flags: -a -tags netgo
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.

# Needs to be defined before including Makefile.common to auto-generate targets
DOCKER_ARCHS ?= amd64 armv7 arm64
DOCKER_ARCHS ?= amd64 armv7 arm64 ppc64le s390x
DOCKER_IMAGE_NAME ?= haproxy-exporter

all:: vet checkmetrics common-all
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ go 1.14
require (
github.com/alecthomas/units v0.0.0-20201120081800-1786d5ef83d4 // indirect
github.com/go-kit/kit v0.10.0
github.com/prometheus/client_golang v1.8.0
github.com/prometheus/common v0.15.0
golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d // indirect
github.com/prometheus/client_golang v1.9.0
github.com/prometheus/common v0.18.0
google.golang.org/protobuf v1.25.0 // indirect
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)
46 changes: 6 additions & 40 deletions go.sum

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions vendor/github.com/alecthomas/template/LICENSE

This file was deleted.

25 changes: 0 additions & 25 deletions vendor/github.com/alecthomas/template/README.md

This file was deleted.

Loading

0 comments on commit 498b0a2

Please sign in to comment.