chore(build): bump Go from 1.17 to 1.18

- Unneeded disabled linters are: `rowserrcheck`, `sqlclosecheck`
- Disabled linter is `wastedassign` which is tolerable
This commit is contained in:
Quentin McGaw
2022-08-24 21:52:00 +00:00
parent aa53436e56
commit 5914cb0e37
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
ARG ALPINE_VERSION=3.16 ARG ALPINE_VERSION=3.16
ARG GO_ALPINE_VERSION=3.16 ARG GO_ALPINE_VERSION=3.16
ARG GO_VERSION=1.17 ARG GO_VERSION=1.18
ARG XCPUTRANSLATE_VERSION=v0.6.0 ARG XCPUTRANSLATE_VERSION=v0.6.0
ARG GOLANGCI_LINT_VERSION=v1.49.0 ARG GOLANGCI_LINT_VERSION=v1.49.0
ARG MOCKGEN_VERSION=v1.6.0 ARG MOCKGEN_VERSION=v1.6.0

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/qdm12/gluetun module github.com/qdm12/gluetun
go 1.17 go 1.18
require ( require (
github.com/breml/rootcerts v0.2.6 github.com/breml/rootcerts v0.2.6

View File

@@ -30,7 +30,7 @@ func Test_newHTTPClient(t *testing.T) {
piaTransport, ok := piaClient.Transport.(*http.Transport) piaTransport, ok := piaClient.Transport.(*http.Transport)
require.True(t, ok) require.True(t, ok)
subjects := piaTransport.TLSClientConfig.RootCAs.Subjects() subjects := piaTransport.TLSClientConfig.RootCAs.Subjects() //nolint:staticcheck
assert.NotEmpty(t, subjects) assert.NotEmpty(t, subjects)
piaCertFound := false piaCertFound := false
for _, subject := range subjects { for _, subject := range subjects {