Skip to content

Commit e8451ff

Browse files
committed
BUILD/MINOR: go.mod: upgrade client-native
Include runtime socket race condition fix and remove config-parser repo, use the one from client-native.
1 parent ae18cbd commit e8451ff

File tree

8 files changed

+25
-28
lines changed

8 files changed

+25
-28
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ issues:
7979
# bugs of typecheck linter
8080
- "undeclared name: `shellquote`"
8181
- 'github.com/kballard/go-shellquote" imported but not used'
82-
- 'github.com/haproxytech/config-parser/v5/types" imported but not used'
82+
- 'github.com/haproxytech/client-native/v5/config-parser/types" imported but not used'
8383
exclude-rules:
8484
- linters:
8585
- staticcheck

client-native/cn.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
clientnative "github.com/haproxytech/client-native/v5"
1111
"github.com/haproxytech/client-native/v5/models"
1212

13+
parser "github.com/haproxytech/client-native/v5/config-parser"
14+
"github.com/haproxytech/client-native/v5/config-parser/types"
1315
"github.com/haproxytech/client-native/v5/configuration"
1416
configuration_options "github.com/haproxytech/client-native/v5/configuration/options"
1517
runtime_api "github.com/haproxytech/client-native/v5/runtime"
1618
runtime_options "github.com/haproxytech/client-native/v5/runtime/options"
17-
parser "github.com/haproxytech/config-parser/v5"
18-
"github.com/haproxytech/config-parser/v5/types"
1919

2020
dataplaneapi_config "github.com/haproxytech/dataplaneapi/configuration"
2121
"github.com/haproxytech/dataplaneapi/log"

configuration/cluster_sync.go

+1-1
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/v5"
39-
"github.com/haproxytech/config-parser/v5/types"
39+
"github.com/haproxytech/client-native/v5/config-parser/types"
4040
jsoniter "github.com/json-iterator/go"
4141

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

configuration/user.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import (
2525

2626
"github.com/GehirnInc/crypt"
2727
api_errors "github.com/go-openapi/errors"
28-
parser "github.com/haproxytech/config-parser/v5"
29-
"github.com/haproxytech/config-parser/v5/common"
30-
"github.com/haproxytech/config-parser/v5/options"
31-
"github.com/haproxytech/config-parser/v5/types"
28+
parser "github.com/haproxytech/client-native/v5/config-parser"
29+
"github.com/haproxytech/client-native/v5/config-parser/common"
30+
"github.com/haproxytech/client-native/v5/config-parser/options"
31+
"github.com/haproxytech/client-native/v5/config-parser/types"
3232

3333
"github.com/haproxytech/dataplaneapi/misc"
3434
)

embedded_spec.go

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

+4-5
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ require (
2222
github.com/go-openapi/validate v0.24.0
2323
github.com/google/renameio v1.0.1
2424
github.com/google/uuid v1.6.0
25-
github.com/haproxytech/client-native/v5 v5.0.12
26-
github.com/haproxytech/config-parser/v5 v5.1.6
25+
github.com/haproxytech/client-native/v5 v5.0.13
2726
github.com/jessevdk/go-flags v1.6.1
2827
github.com/json-iterator/go v1.1.12
2928
github.com/lestrrat-go/apache-logformat v0.0.0-20210106032603-24d066f940f8
@@ -34,7 +33,7 @@ require (
3433
github.com/sirupsen/logrus v1.9.3
3534
github.com/stretchr/testify v1.9.0
3635
golang.org/x/net v0.26.0
37-
golang.org/x/sys v0.25.0
36+
golang.org/x/sys v0.26.0
3837
gopkg.in/yaml.v2 v2.4.0
3938
)
4039

@@ -78,7 +77,7 @@ require (
7877
github.com/tklauser/go-sysconf v0.3.14 // indirect
7978
github.com/tklauser/numcpus v0.8.0 // indirect
8079
github.com/yusufpapurcu/wmi v1.2.4 // indirect
81-
go.mongodb.org/mongo-driver v1.16.1 // indirect
82-
golang.org/x/sync v0.7.0 // indirect
80+
go.mongodb.org/mongo-driver v1.17.1 // indirect
81+
golang.org/x/sync v0.8.0 // indirect
8382
gopkg.in/yaml.v3 v3.0.1 // indirect
8483
)

go.sum

+8-10
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ github.com/google/renameio v1.0.1 h1:Lh/jXZmvZxb0BBeSY5VKEfidcbcbenKjZFzM/q0fSeU
8181
github.com/google/renameio v1.0.1/go.mod h1:t/HQoYBZSsWSNK35C6CO/TpPLDVWvxOHboWUAweKUpk=
8282
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
8383
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
84-
github.com/haproxytech/client-native/v5 v5.0.12 h1:JDB2VOvdsQeEOaF6zMwIG5MWS7xK46EkI2LfOqckPX8=
85-
github.com/haproxytech/client-native/v5 v5.0.12/go.mod h1:zOUbyZvx+YdvyJVE8KSuRaDl95bR17JE/RkVAEVA9Ac=
86-
github.com/haproxytech/config-parser/v5 v5.1.6 h1:64KHffpOGoyjFuMmq9dLOvcRCEzg/2GAnPwhmue1uVY=
87-
github.com/haproxytech/config-parser/v5 v5.1.6/go.mod h1:16+1AbS+AvMZkDScIhergz2dqecQuEmjwV4Xt5ncS9s=
84+
github.com/haproxytech/client-native/v5 v5.0.13 h1:yLo6P81sI/1+sbIasKi41qqhAr4kXjkcZygrM94iN8A=
85+
github.com/haproxytech/client-native/v5 v5.0.13/go.mod h1:yyAcTZ76tgdW2tSvYtmN15XSNDp6ollX3NzCMvNCMl4=
8886
github.com/haproxytech/go-logger v1.1.0 h1:HgGtYaI1ApkvbQdsm7f9AzQQoxTB7w37criTflh7IQE=
8987
github.com/haproxytech/go-logger v1.1.0/go.mod h1:OekUd8HCb7ubxMplzHUPBTHNxZmddOWfOjWclZsqIeM=
9088
github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso=
@@ -159,17 +157,17 @@ github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0
159157
github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY=
160158
github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
161159
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
162-
go.mongodb.org/mongo-driver v1.16.1 h1:rIVLL3q0IHM39dvE+z2ulZLp9ENZKThVfuvN/IiN4l8=
163-
go.mongodb.org/mongo-driver v1.16.1/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw=
160+
go.mongodb.org/mongo-driver v1.17.1 h1:Wic5cJIwJgSpBhe3lx3+/RybR5PiYRMpVFgO7cOHyIM=
161+
go.mongodb.org/mongo-driver v1.17.1/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4=
164162
golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
165163
golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
166-
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
167-
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
164+
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
165+
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
168166
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
169167
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
170168
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
171-
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
172-
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
169+
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
170+
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
173171
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
174172
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
175173
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

misc/misc.go

+1-1
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/v5/config-parser/types"
3132
"github.com/haproxytech/client-native/v5/configuration"
3233
client_errors "github.com/haproxytech/client-native/v5/errors"
3334
"github.com/haproxytech/client-native/v5/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)