Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 681fac8

Browse files
authored
Merge pull request #69 from luizm/feat-add-go-module
feat: add go module
2 parents a815556 + afe14a5 commit 681fac8

File tree

5 files changed

+744
-231
lines changed

5 files changed

+744
-231
lines changed

Diff for: Gopkg.lock

-197
This file was deleted.

Diff for: Gopkg.toml

-26
This file was deleted.

Diff for: Makefile

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
setup:
2-
go get -u gopkg.in/alecthomas/gometalinter.v2
3-
go get -u github.com/golang/dep/cmd/dep
4-
dep ensure -v -vendor-only
5-
gometalinter.v2 --install
6-
71
build:
8-
CGO_ENABLED=0 go build -ldflags="-s -w"
2+
CGO_ENABLED=0 GO111MODULES=on go build -ldflags="-s -w" -o postgresql_exporter .
93

104
test:
11-
GOCACHE=off go test -v ./...
5+
GOCACHE=off GO111MODULES=on go test -v ./...
126

137
lint:
148
gometalinter.v2 --vendor --deadline=60s ./...

Diff for: go.mod

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module github.com/ContaAzul/postgresql_exporter
2+
3+
go 1.14
4+
5+
require (
6+
github.com/GoogleCloudPlatform/cloudsql-proxy v1.19.1
7+
github.com/apex/httplog v1.0.0
8+
github.com/apex/log v1.9.0
9+
github.com/jmoiron/sqlx v1.2.0
10+
github.com/lib/pq v1.9.0
11+
github.com/prometheus/client_golang v1.9.0
12+
gopkg.in/yaml.v2 v2.4.0
13+
)

0 commit comments

Comments
 (0)