Skip to content

Commit a02f1a6

Browse files
authored
Merge pull request #51 from Spendesk/update-go-and-deps
refactor(go/deps/module name): General update
2 parents ccd1f33 + dbddd11 commit a02f1a6

12 files changed

+123
-68
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16 as builder
1+
FROM golang:1.18 as builder
22

33
WORKDIR /app
44
COPY . .

go.mod

+33-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
1-
module github-actions-exporter
1+
module github.com/spendesk/github-actions-exporter
22

3-
go 1.16
3+
go 1.18
44

55
require (
6-
github.com/andybalholm/brotli v1.0.3 // indirect
7-
github.com/bradleyfalzon/ghinstallation v1.1.1
8-
github.com/die-net/lrucache v0.0.0-20220628165024-20a71bc65bf1 // indirect
9-
github.com/fasthttp/router v1.3.9
6+
github.com/bradleyfalzon/ghinstallation/v2 v2.1.0
7+
github.com/die-net/lrucache v0.0.0-20220628165024-20a71bc65bf1
8+
github.com/fasthttp/router v1.4.11
109
github.com/google/go-github v17.0.0+incompatible
1110
github.com/google/go-github/v45 v45.2.0
1211
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
13-
github.com/prometheus/client_golang v1.11.0
14-
github.com/urfave/cli/v2 v2.3.0
15-
github.com/valyala/fasthttp v1.22.0
16-
golang.org/x/oauth2 v0.0.0-20210311163135-5366d9dc1934
12+
github.com/prometheus/client_golang v1.13.0
13+
github.com/urfave/cli/v2 v2.11.2
14+
github.com/valyala/fasthttp v1.39.0
15+
golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094
16+
)
17+
18+
require (
19+
github.com/andybalholm/brotli v1.0.4 // indirect
20+
github.com/beorn7/perks v1.0.1 // indirect
21+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
22+
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
23+
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
24+
github.com/golang/protobuf v1.5.2 // indirect
25+
github.com/google/go-querystring v1.1.0 // indirect
26+
github.com/klauspost/compress v1.15.0 // indirect
27+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
28+
github.com/prometheus/client_model v0.2.0 // indirect
29+
github.com/prometheus/common v0.37.0 // indirect
30+
github.com/prometheus/procfs v0.8.0 // indirect
31+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
32+
github.com/savsgio/gotils v0.0.0-20220530130905-52f3993e8d6d // indirect
33+
github.com/valyala/bytebufferpool v1.0.0 // indirect
34+
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
35+
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
36+
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
37+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
38+
google.golang.org/appengine v1.6.7 // indirect
39+
google.golang.org/protobuf v1.28.1 // indirect
1740
)

go.sum

+71-45
Large diffs are not rendered by default.

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66

77
"github.com/urfave/cli/v2"
88

9-
"github-actions-exporter/pkg/config"
10-
"github-actions-exporter/pkg/server"
9+
"github.com/spendesk/github-actions-exporter/pkg/config"
10+
"github.com/spendesk/github-actions-exporter/pkg/server"
1111
)
1212

1313
var (

pkg/metrics/get_billable_from_github.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package metrics
22

33
import (
44
"context"
5-
"github-actions-exporter/pkg/config"
65
"log"
76
"strconv"
87
"strings"
98
"time"
109

10+
"github.com/spendesk/github-actions-exporter/pkg/config"
11+
1112
"github.com/google/go-github/github"
1213
"github.com/prometheus/client_golang/prometheus"
1314
)

pkg/metrics/get_runners_enterprise_from_github.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package metrics
22

33
import (
44
"context"
5-
"github-actions-exporter/pkg/config"
65
"log"
76
"strconv"
87
"time"
98

9+
"github.com/spendesk/github-actions-exporter/pkg/config"
10+
1011
"github.com/google/go-github/v45/github"
1112
"github.com/prometheus/client_golang/prometheus"
1213
)

pkg/metrics/get_runners_from_github.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package metrics
22

33
import (
44
"context"
5-
"github-actions-exporter/pkg/config"
65
"log"
76
"strconv"
87
"strings"
98
"time"
109

10+
"github.com/spendesk/github-actions-exporter/pkg/config"
11+
1112
"github.com/google/go-github/v45/github"
1213
"github.com/prometheus/client_golang/prometheus"
1314
)

pkg/metrics/get_runners_organization_from_github.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package metrics
22

33
import (
44
"context"
5-
"github-actions-exporter/pkg/config"
65
"log"
76
"strconv"
87
"time"
98

9+
"github.com/spendesk/github-actions-exporter/pkg/config"
10+
1011
"github.com/google/go-github/v45/github"
1112
"github.com/prometheus/client_golang/prometheus"
1213
)

pkg/metrics/get_workflow_runs_from_github.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package metrics
22

33
import (
44
"context"
5-
"github-actions-exporter/pkg/config"
65
"log"
76
"strconv"
87
"strings"
98
"time"
109

10+
"github.com/spendesk/github-actions-exporter/pkg/config"
11+
1112
"github.com/google/go-github/v45/github"
1213
)
1314

pkg/metrics/github_fetcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/google/go-github/v45/github"
1010

11-
"github-actions-exporter/pkg/config"
11+
"github.com/spendesk/github-actions-exporter/pkg/config"
1212
)
1313

1414
var (

pkg/metrics/metrics.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package metrics
33
import (
44
"context"
55
"fmt"
6-
"github-actions-exporter/pkg/config"
76
"log"
87
"net/http"
98
"net/url"
109
"strings"
1110

12-
"github.com/bradleyfalzon/ghinstallation"
11+
"github.com/spendesk/github-actions-exporter/pkg/config"
12+
13+
"github.com/bradleyfalzon/ghinstallation/v2"
1314
"github.com/die-net/lrucache"
1415
"github.com/google/go-github/v45/github"
1516
"github.com/gregjones/httpcache"

pkg/server/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/urfave/cli/v2"
99
"github.com/valyala/fasthttp"
1010

11-
"github-actions-exporter/pkg/config"
12-
"github-actions-exporter/pkg/metrics"
11+
"github.com/spendesk/github-actions-exporter/pkg/config"
12+
"github.com/spendesk/github-actions-exporter/pkg/metrics"
1313
)
1414

1515
// RunServer - run http server for expose metrics

0 commit comments

Comments
 (0)