File tree Expand file tree Collapse file tree 10 files changed +23
-14
lines changed Expand file tree Collapse file tree 10 files changed +23
-14
lines changed Original file line number Diff line number Diff line change 15
15
- name : Set up Go
16
16
uses : actions/setup-go@v4
17
17
with :
18
- go-version : ' 1.20 '
18
+ go-version-file : ' go.mod '
19
19
- name : Run GoReleaser
20
20
uses : goreleaser/goreleaser-action@v4
21
21
with :
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
13
- - name : Set up Go 1.20
13
+ - name : Set up Go
14
14
uses : actions/setup-go@v4
15
15
with :
16
- go-version : ' 1.20 '
16
+ go-version-file : ' go.mod '
17
17
id : go
18
18
19
19
- name : Check out code into the Go module directory
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ jobs:
15
15
uses : actions/checkout@v3
16
16
- name : Downloading required packages
17
17
run : sudo apt-get install bats
18
- - name : Set up Go 1.20
18
+ - name : Set up Go
19
19
uses : actions/setup-go@v4
20
20
with :
21
- go-version : ' 1.20 '
21
+ go-version-file : ' go.mod '
22
22
- run : make e2e
23
23
env :
24
24
HAPROXY_VERSION : ${{ matrix.haproxy_version }}
Original file line number Diff line number Diff line change 13
13
- name : Set up Go
14
14
uses : actions/setup-go@v4
15
15
with :
16
- go-version : ' 1.20 '
16
+ go-version-file : ' go.mod '
17
17
- uses : actions/cache@v3
18
18
with :
19
19
path : |
35
35
- name : Set up Go
36
36
uses : actions/setup-go@v4
37
37
with :
38
- go-version : ' 1.20 '
38
+ go-version-file : ' go.mod '
39
39
- uses : actions/cache@v3
40
40
with :
41
41
path : |
Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ variables:
6
6
DOCKER_HOST : tcp://docker:2375
7
7
DOCKER_BASE_IMAGE : $CI_REGISTRY_GO/haproxy-alpine
8
8
BATS_VERSION : v1.4.1
9
+ GO_VERSION : ' 1.21'
9
10
10
11
diff :
11
12
stage : lint
12
13
image :
13
- name : $CI_REGISTRY_GO/docker:stable-go1.20
14
+ name : $CI_REGISTRY_GO/docker:stable-go$GO_VERSION
14
15
entrypoint : [ "" ]
15
16
services :
16
17
- name : $CI_REGISTRY_GO/docker:20.10.5-dind
@@ -33,7 +34,7 @@ golangci-lint:
33
34
paths :
34
35
- build
35
36
image :
36
- name : $CI_REGISTRY_GO/golang:1.20
37
+ name : $CI_REGISTRY_GO/golang:$GO_VERSION
37
38
entrypoint : [""]
38
39
tags :
39
40
- go
@@ -48,7 +49,7 @@ gofumpt:
48
49
- if : $CI_PIPELINE_SOURCE == 'merge_request_event'
49
50
- if : $CI_PIPELINE_SOURCE == 'push'
50
51
image :
51
- name : $CI_REGISTRY_GO/golang:1.20
52
+ name : $CI_REGISTRY_GO/golang:$GO_VERSION
52
53
entrypoint : [""]
53
54
tags :
54
55
- go
73
74
paths :
74
75
- build
75
76
image :
76
- name : $CI_REGISTRY_GO/golang:1.20
77
+ name : $CI_REGISTRY_GO/golang:$GO_VERSION
77
78
entrypoint : [ "" ]
78
79
tags :
79
80
- go
Original file line number Diff line number Diff line change @@ -71,9 +71,16 @@ linters:
71
71
- forbidigo
72
72
- errcheck
73
73
- gocritic
74
+ - tagalign
75
+ - depguard
74
76
75
77
76
78
issues :
79
+ exclude :
80
+ # bugs of typecheck linter
81
+ - " undeclared name: `shellquote`"
82
+ - " github.com/kballard/go-shellquote\" imported but not used"
83
+ - " github.com/haproxytech/config-parser/v5/types\" imported but not used"
77
84
exclude-rules :
78
85
- linters :
79
86
- staticcheck
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ GIT_MODIFIED=${GIT_MODIFIED1}${GIT_MODIFIED2}
9
9
SWAGGER_VERSION =${shell curl -s https://raw.githubusercontent.com/haproxytech/client-native/master/Makefile | grep SWAGGER_VERSION -m 1 | awk -F"=" '{print $$2}'}
10
10
BUILD_DATE =$(shell date -u '+% Y-% m-% dT% H:% M:% SZ')
11
11
CGO_ENABLED? =0
12
- GOLANGCI_LINT_VERSION =1.51.1
12
+ GOLANGCI_LINT_VERSION =1.54.2
13
13
14
14
all : update clean build
15
15
Original file line number Diff line number Diff line change 9
9
10
10
## Building the Data Plane API
11
11
12
- In order to build the Data Plane API you need go 1.20 installed on your system with go modules support enabled, and execute the following steps:
12
+ In order to build the Data Plane API you need Go installed on your system with go modules support enabled, and execute the following steps:
13
13
14
14
1\. Clone dataplaneapi repository
15
15
Original file line number Diff line number Diff line change 1
1
module github.com/haproxytech/dataplaneapi
2
2
3
- go 1.20
3
+ go 1.21
4
4
5
5
require (
6
6
github.com/GehirnInc/crypt v0.0.0-20230320061759-8cc1b52080c5
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxv
160
160
github.com/kr/pretty v0.1.0 /go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo =
161
161
github.com/kr/pretty v0.2.1 /go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI =
162
162
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE =
163
+ github.com/kr/pretty v0.3.1 /go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk =
163
164
github.com/kr/pty v1.1.1 /go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ =
164
165
github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
165
166
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
You can’t perform that action at this time.
0 commit comments