Skip to content

Commit fbe93ef

Browse files
committed
BUILD/MEDIUM: config-parser: use the latest from client-native
1 parent c4bf89d commit fbe93ef

File tree

7 files changed

+9
-12
lines changed

7 files changed

+9
-12
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

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/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

Lines changed: 4 additions & 4 deletions
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
)

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ require (
2525
github.com/google/renameio v1.0.1
2626
github.com/google/uuid v1.6.0
2727
github.com/haproxytech/client-native/v5 v5.1.14
28-
github.com/haproxytech/config-parser/v5 v5.1.6
2928
github.com/jessevdk/go-flags v1.6.1
3029
github.com/json-iterator/go v1.1.12
3130
github.com/kr/pretty v0.3.1

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
8787
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
8888
github.com/haproxytech/client-native/v5 v5.1.14 h1:Q7G32YJQlHugIUb1fFTm+jsBUbS0EGCjW4UyAKtTKBU=
8989
github.com/haproxytech/client-native/v5 v5.1.14/go.mod h1:dhwpFkOsWxJRtwNs+LTJtsUTf9pX3uWHKKip9loIK3c=
90-
github.com/haproxytech/config-parser/v5 v5.1.6 h1:64KHffpOGoyjFuMmq9dLOvcRCEzg/2GAnPwhmue1uVY=
91-
github.com/haproxytech/config-parser/v5 v5.1.6/go.mod h1:16+1AbS+AvMZkDScIhergz2dqecQuEmjwV4Xt5ncS9s=
9290
github.com/haproxytech/go-logger v1.1.0 h1:HgGtYaI1ApkvbQdsm7f9AzQQoxTB7w37criTflh7IQE=
9391
github.com/haproxytech/go-logger v1.1.0/go.mod h1:OekUd8HCb7ubxMplzHUPBTHNxZmddOWfOjWclZsqIeM=
9492
github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso=

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/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)