Skip to content

Commit dab0faa

Browse files
committed
MEDIUM: Update to the latest version of client-native
This version has config-parser builtin, so we also need to update a few import paths.
1 parent 84a438c commit dab0faa

File tree

7 files changed

+20
-23
lines changed

7 files changed

+20
-23
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ issues:
7777
# bugs of typecheck linter
7878
- "undeclared name: `shellquote`"
7979
- 'github.com/kballard/go-shellquote" imported but not used'
80-
- 'github.com/haproxytech/config-parser/v5/types" imported but not used'
80+
- 'github.com/haproxytech/client-native/v6/config-parser/types" imported but not used'
8181
exclude-rules:
8282
- linters:
8383
- staticcheck

client-native/cn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88

99
clientnative "github.com/haproxytech/client-native/v6"
1010

11+
parser "github.com/haproxytech/client-native/v6/config-parser"
12+
"github.com/haproxytech/client-native/v6/config-parser/types"
1113
"github.com/haproxytech/client-native/v6/configuration"
1214
configuration_options "github.com/haproxytech/client-native/v6/configuration/options"
1315
runtime_api "github.com/haproxytech/client-native/v6/runtime"
1416
runtime_options "github.com/haproxytech/client-native/v6/runtime/options"
15-
parser "github.com/haproxytech/config-parser/v5"
16-
"github.com/haproxytech/config-parser/v5/types"
1717

1818
dataplaneapi_config "github.com/haproxytech/dataplaneapi/configuration"
1919
"github.com/haproxytech/dataplaneapi/log"

configuration/cluster_sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636

3737
"github.com/google/renameio"
3838
client_native "github.com/haproxytech/client-native/v6"
39-
"github.com/haproxytech/config-parser/v5/types"
39+
"github.com/haproxytech/client-native/v6/config-parser/types"
4040
jsoniter "github.com/json-iterator/go"
4141

4242
"github.com/haproxytech/dataplaneapi/log"

configuration/user.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626

2727
"github.com/GehirnInc/crypt"
2828
api_errors "github.com/go-openapi/errors"
29-
parser "github.com/haproxytech/config-parser/v5"
30-
"github.com/haproxytech/config-parser/v5/common"
31-
"github.com/haproxytech/config-parser/v5/options"
32-
"github.com/haproxytech/config-parser/v5/types"
29+
parser "github.com/haproxytech/client-native/v6/config-parser"
30+
"github.com/haproxytech/client-native/v6/config-parser/common"
31+
"github.com/haproxytech/client-native/v6/config-parser/options"
32+
"github.com/haproxytech/client-native/v6/config-parser/types"
3333

3434
"github.com/haproxytech/dataplaneapi/misc"
3535
"github.com/haproxytech/dataplaneapi/storagetype"

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ require (
2424
github.com/google/go-cmp v0.6.0
2525
github.com/google/renameio v1.0.1
2626
github.com/google/uuid v1.6.0
27-
github.com/haproxytech/client-native/v6 v6.0.0-20240731161942-ee8db30f18a6
28-
github.com/haproxytech/config-parser/v5 v5.1.1-0.20240624144932-f03e520c3b70
27+
github.com/haproxytech/client-native/v6 v6.0.0-20240806205348-3c6c7501d445
2928
github.com/jessevdk/go-flags v1.5.0
3029
github.com/json-iterator/go v1.1.12
3130
github.com/kr/pretty v0.3.1
@@ -39,7 +38,7 @@ require (
3938
github.com/stretchr/testify v1.9.0
4039
go.uber.org/automaxprocs v1.5.3
4140
golang.org/x/net v0.27.0
42-
golang.org/x/sys v0.22.0
41+
golang.org/x/sys v0.23.0
4342
gopkg.in/yaml.v2 v2.4.0
4443
)
4544

@@ -92,7 +91,7 @@ require (
9291
github.com/yusufpapurcu/wmi v1.2.4 // indirect
9392
go.mongodb.org/mongo-driver v1.16.0 // indirect
9493
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
95-
golang.org/x/sync v0.7.0 // indirect
94+
golang.org/x/sync v0.8.0 // indirect
9695
google.golang.org/protobuf v1.34.1 // indirect
9796
gopkg.in/yaml.v3 v3.0.1 // indirect
9897
)

go.sum

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@ github.com/google/renameio v1.0.1 h1:Lh/jXZmvZxb0BBeSY5VKEfidcbcbenKjZFzM/q0fSeU
9898
github.com/google/renameio v1.0.1/go.mod h1:t/HQoYBZSsWSNK35C6CO/TpPLDVWvxOHboWUAweKUpk=
9999
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
100100
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
101-
github.com/haproxytech/client-native/v6 v6.0.0-20240731161942-ee8db30f18a6 h1:JuCMLoKCV3Yg2TufkBTe8wohFmK8Ri3ZsNn26G8Ril0=
102-
github.com/haproxytech/client-native/v6 v6.0.0-20240731161942-ee8db30f18a6/go.mod h1:MS5mSnNaJy869yQtDZiq8bk4s3oKzizEG+VIVrPL5e0=
103-
github.com/haproxytech/config-parser/v5 v5.1.1-0.20240624144932-f03e520c3b70 h1:8pxJQsl770NboyHoa6t2i2hvRfzSLi8FvFwTAIlg8J4=
104-
github.com/haproxytech/config-parser/v5 v5.1.1-0.20240624144932-f03e520c3b70/go.mod h1:uzi0JXWJYW31M1AzGsczaJtEaoG54qP0LX8B1A2iQRw=
101+
github.com/haproxytech/client-native/v6 v6.0.0-20240806205348-3c6c7501d445 h1:zjkPA1ZPRCdWpXa6xq5bnU+N0Zdno8cG3ULE8aeYedA=
102+
github.com/haproxytech/client-native/v6 v6.0.0-20240806205348-3c6c7501d445/go.mod h1:VJ/X2Q+DndHBo0Kwbeu3WCJg0t2nP1y8mmZAHb873do=
105103
github.com/haproxytech/go-logger v1.1.0 h1:HgGtYaI1ApkvbQdsm7f9AzQQoxTB7w37criTflh7IQE=
106104
github.com/haproxytech/go-logger v1.1.0/go.mod h1:OekUd8HCb7ubxMplzHUPBTHNxZmddOWfOjWclZsqIeM=
107105
github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso=
@@ -199,19 +197,19 @@ golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJI
199197
golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
200198
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
201199
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
202-
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
203-
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
200+
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
201+
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
204202
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
205203
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
206204
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
207205
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
208206
golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
209207
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
210208
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
211-
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
212-
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
213-
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
214-
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
209+
golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM=
210+
golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
211+
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
212+
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
215213
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
216214
google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
217215
google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=

misc/misc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import (
2828
"strings"
2929

3030
"github.com/GehirnInc/crypt"
31+
"github.com/haproxytech/client-native/v6/config-parser/types"
3132
"github.com/haproxytech/client-native/v6/configuration"
3233
client_errors "github.com/haproxytech/client-native/v6/errors"
3334
"github.com/haproxytech/client-native/v6/models"
34-
"github.com/haproxytech/config-parser/v5/types"
3535
jsoniter "github.com/json-iterator/go"
3636

3737
"github.com/haproxytech/dataplaneapi/haproxy"

0 commit comments

Comments
 (0)