Skip to content

Commit 8e485e6

Browse files
authored
Merge pull request #1 from slashdevops/develop
Updating golang and dependencies
2 parents b5a38fa + 6ff4fc5 commit 8e485e6

File tree

10 files changed

+410
-186
lines changed

10 files changed

+410
-186
lines changed

.github/workflows/develop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go 1.x
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: ^1.15
25+
go-version: ^1.18
2626
id: go
2727

2828
- name: Check out code into the Go module directory

.github/workflows/master.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go 1.x
2727
uses: actions/setup-go@v2
2828
with:
29-
go-version: ^1.15
29+
go-version: ^1.18
3030
id: go
3131

3232
- name: Check out code into the Go module directory
@@ -54,7 +54,7 @@ jobs:
5454
- name: Set up Go 1.x
5555
uses: actions/setup-go@v2
5656
with:
57-
go-version: ^1.15
57+
go-version: ^1.18
5858
id: go
5959

6060
- name: Check out code into the Go module directory
@@ -86,7 +86,7 @@ jobs:
8686
- name: Set up Go 1.x
8787
uses: actions/setup-go@v2
8888
with:
89-
go-version: ^1.15
89+
go-version: ^1.18
9090
id: go
9191

9292
- name: Check out code into the Go module directory

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go 1.x
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: ^1.15
21+
go-version: ^1.18
2222
id: go
2323

2424
- name: Check out code into the Go module directory
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up Go 1.x
4242
uses: actions/setup-go@v2
4343
with:
44-
go-version: ^1.15
44+
go-version: ^1.18
4545
id: go
4646

4747
- name: Check out code into the Go module directory
@@ -73,7 +73,7 @@ jobs:
7373
- name: Set up Go 1.x
7474
uses: actions/setup-go@v2
7575
with:
76-
go-version: ^1.15
76+
go-version: ^1.18
7777
id: go
7878

7979
- name: Check out code into the Go module directory
@@ -156,7 +156,7 @@ jobs:
156156
- name: Set up Go 1.x
157157
uses: actions/setup-go@v2
158158
with:
159-
go-version: ^1.15
159+
go-version: ^1.18
160160
id: go
161161

162162
- name: Check out code into the Go module directory

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"makefile.extensionOutputFolder": "./.vscode"
3+
}

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG ARCH="amd64"
22
ARG OS="linux"
3-
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc
3+
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
44

55
LABEL maintainer="Christian González Di Antonio <[email protected]>" \
66
org.opencontainers.image.authors="Christian González Di Antonio <[email protected]>" \
@@ -18,7 +18,7 @@ COPY .build/${OS}-${ARCH}/aws_cloudwatch_exporter /bin/aws_cloudwatch_exporter
1818
ARG PORT="9690"
1919
EXPOSE ${PORT}
2020

21-
RUN mkdir -p /home/nobody/.aws && chown -R nobody.nogroup /home/nobody
21+
RUN mkdir -p /home/nobody/.aws && chown -R nobody:nobody /home/nobody
2222
ENV HOME="/home/nobody"
2323
USER nobody
2424

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ include Makefile.common
1818

1919
DOCKER_IMAGE_NAME ?= aws-cloudwatch-exporter
2020

21-
GOLANGCI_LINT_VERSION ?= v1.27.0
21+
GOLANGCI_LINT_VERSION ?= v1.46.2

Makefile.common

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ ifneq ($(shell which gotestsum),)
7878
endif
7979
endif
8080

81-
PROMU_VERSION ?= 0.5.0
81+
PROMU_VERSION ?= 0.13.0
8282
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
8383

8484
GOLANGCI_LINT :=
8585
GOLANGCI_LINT_OPTS ?=
86-
GOLANGCI_LINT_VERSION ?= v1.18.0
86+
GOLANGCI_LINT_VERSION ?= v1.46.2
8787
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
8888
# windows isn't included here because of the path separator being different.
8989
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))

go.mod

+36-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,41 @@
11
module github.com/slashdevops/aws_cloudwatch_exporter
22

3-
go 1.15
3+
go 1.18
44

55
require (
6-
github.com/aws/aws-sdk-go v1.34.0
7-
github.com/imdario/mergo v0.3.10
8-
github.com/prometheus/client_golang v1.7.1
9-
github.com/prometheus/common v0.10.0
10-
github.com/sirupsen/logrus v1.6.0
11-
github.com/spf13/cobra v1.0.0
12-
github.com/spf13/viper v1.7.1
13-
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
6+
github.com/aws/aws-sdk-go v1.44.20
7+
github.com/imdario/mergo v0.3.12
8+
github.com/prometheus/client_golang v1.12.2
9+
github.com/prometheus/common v0.32.1
10+
github.com/sirupsen/logrus v1.8.1
11+
github.com/spf13/cobra v1.4.0
12+
github.com/spf13/viper v1.11.0
13+
gopkg.in/yaml.v3 v3.0.0
14+
)
15+
16+
require (
17+
github.com/beorn7/perks v1.0.1 // indirect
18+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
19+
github.com/fsnotify/fsnotify v1.5.1 // indirect
20+
github.com/golang/protobuf v1.5.2 // indirect
21+
github.com/hashicorp/hcl v1.0.0 // indirect
22+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
23+
github.com/jmespath/go-jmespath v0.4.0 // indirect
24+
github.com/magiconair/properties v1.8.6 // indirect
25+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
26+
github.com/mitchellh/mapstructure v1.4.3 // indirect
27+
github.com/pelletier/go-toml v1.9.4 // indirect
28+
github.com/pelletier/go-toml/v2 v2.0.0-beta.8 // indirect
29+
github.com/prometheus/client_model v0.2.0 // indirect
30+
github.com/prometheus/procfs v0.7.3 // indirect
31+
github.com/spf13/afero v1.8.2 // indirect
32+
github.com/spf13/cast v1.4.1 // indirect
33+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
34+
github.com/spf13/pflag v1.0.5 // indirect
35+
github.com/subosito/gotenv v1.2.0 // indirect
36+
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
37+
golang.org/x/text v0.3.7 // indirect
38+
google.golang.org/protobuf v1.28.0 // indirect
39+
gopkg.in/ini.v1 v1.66.4 // indirect
40+
gopkg.in/yaml.v2 v2.4.0 // indirect
1441
)

0 commit comments

Comments
 (0)