Skip to content

Commit d026f6a

Browse files
fix(deps): bump supported Go versions to 1.22 and 1.21 (#127)
1 parent da3c5f7 commit d026f6a

File tree

9 files changed

+15
-13
lines changed

9 files changed

+15
-13
lines changed

.github/variables/go-versions.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
latest=1.19
2-
penultimate=1.18
1+
latest=1.22
2+
penultimate=1.21

.golangci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ run:
55
linters:
66
enable:
77
- bodyclose
8-
- deadcode
9-
- depguard
108
- dupl
119
- errcheck
1210
- exportloopref
@@ -36,7 +34,6 @@ linters:
3634
- unconvert
3735
- unparam
3836
- unused
39-
- varcheck
4037
- whitespace
4138
fast: false
4239

@@ -54,4 +51,3 @@ linters-settings:
5451
issues:
5552
exclude-use-default: false
5653
max-same-issues: 1000
57-
max-per-linter: 1000

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
GOLANGCI_LINT_VERSION=v1.48.0
2+
GOLANGCI_LINT_VERSION=v1.57.1
33

44
LINTER=./bin/golangci-lint
55
LINTER_VERSION_FILE=./bin/.golangci-lint-version-$(GOLANGCI_LINT_VERSION)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Supported Go versions
1010

11-
This version of the LaunchDarkly SDK supports Go version 1.18 or higher.
11+
This version of the LaunchDarkly SDK supports Go version 1.21 or higher.
1212

1313
The policy for this SDK follows that of the official Go [Release Policy](https://go.dev/doc/devel/release): each major Go release is supported until there
1414
are two newer major releases.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/launchdarkly/go-server-sdk/v6
22

3-
go 1.18
3+
go 1.21
44

55
require (
66
github.com/fsnotify/fsnotify v1.4.7

go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFF
1212
github.com/karlseguin/expect v1.0.2-0.20190806010014-778a5f0c6003 h1:vJ0Snvo+SLMY72r5J4sEfkuE7AFbixEP2qRbEcum/wA=
1313
github.com/karlseguin/expect v1.0.2-0.20190806010014-778a5f0c6003/go.mod h1:zNBxMY8P21owkeogJELCLeHIt+voOSduHYTFUbwRAV8=
1414
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
15+
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
1516
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
17+
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
1618
github.com/launchdarkly/ccache v1.1.0 h1:voD1M+ZJXR3MREOKtBwgTF9hYHl1jg+vFKS/+VAkR2k=
1719
github.com/launchdarkly/ccache v1.1.0/go.mod h1:TlxzrlnzvYeXiLHmesMuvoZetu4Z97cV1SsdqqBJi1Q=
1820
github.com/launchdarkly/eventsource v1.6.2 h1:5SbcIqzUomn+/zmJDrkb4LYw7ryoKFzH/0TbR0/3Bdg=
@@ -67,6 +69,7 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
6769
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
6870
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
6971
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
72+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
7073
gopkg.in/ghodss/yaml.v1 v1.0.0 h1:JlY4R6oVz+ZSvcDhVfNQ/k/8Xo6yb2s1PBhslPZPX4c=
7174
gopkg.in/ghodss/yaml.v1 v1.0.0/go.mod h1:HDvRMPQLqycKPs9nWLuzZWxsxRzISLCRORiDpBUOMqg=
7275
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

internal/endpoints/configure_endpoints.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
type ServiceType int
1212

1313
const (
14-
StreamingService ServiceType = iota //nolint:revive // don't really need doc comments here
15-
PollingService ServiceType = iota
16-
EventsService ServiceType = iota
14+
StreamingService ServiceType = iota //nolint:revive // internal constant
15+
PollingService ServiceType = iota //nolint:revive // internal constant
16+
EventsService ServiceType = iota //nolint:revive // internal constant
1717
)
1818

1919
func (s ServiceType) String() string {

internal/sharedtest/mocks/mock_components.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type SingleComponentConfigurer[T any] struct {
88
Instance T
99
}
1010

11+
// Build builds the component.
1112
func (c SingleComponentConfigurer[T]) Build(clientContext subsystems.ClientContext) (T, error) {
1213
return c.Instance, nil
1314
}
@@ -18,6 +19,7 @@ type ComponentConfigurerThatReturnsError[T any] struct {
1819
Err error
1920
}
2021

22+
// Build builds the component.
2123
func (c ComponentConfigurerThatReturnsError[T]) Build(clientContext subsystems.ClientContext) (T, error) {
2224
var empty T
2325
return empty, c.Err
@@ -30,6 +32,7 @@ type ComponentConfigurerThatCapturesClientContext[T any] struct {
3032
ReceivedClientContext subsystems.ClientContext
3133
}
3234

35+
// Build builds the component.
3336
func (c *ComponentConfigurerThatCapturesClientContext[T]) Build(clientContext subsystems.ClientContext) (T, error) {
3437
c.ReceivedClientContext = clientContext
3538
return c.Configurer.Build(clientContext)

testservice/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/launchdarkly/go-server-sdk/v6/testservice
22

3-
go 1.18
3+
go 1.21
44

55
require (
66
github.com/gorilla/mux v1.8.0

0 commit comments

Comments
 (0)