Skip to content

Commit ee36186

Browse files
authored
Change minimal Go version to 1.21 and removed unnecessary test (#5)
This commit changed the minimal Go version to 1.21 and removed an unnecessary test/dependency.
1 parent 99160b4 commit ee36186

File tree

8 files changed

+12
-93
lines changed

8 files changed

+12
-93
lines changed

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.22.5
1+
1.22.5

.golangci.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ linters-settings:
7474
forbid:
7575
- fmt.Print.* # too much log noise
7676
# Exclude godoc examples from forbidigo checks. Default is true.
77-
exclude_godoc_examples: true
78-
79-
gosimple:
80-
# Select the Go version to target. The default is '1.13'.
81-
go: "1.21.12"
77+
exclude-godoc-examples: true
8278

8379
nakedret:
8480
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
@@ -87,8 +83,6 @@ linters-settings:
8783
nolintlint:
8884
# Enable to ensure that nolint directives are all used. Default is true.
8985
allow-unused: false
90-
# Disable to ensure that nolint directives don't have a leading space. Default is true.
91-
allow-leading-space: false
9286
# Exclude following linters from requiring an explanation. Default is [].
9387
allow-no-explanation: []
9488
# Enable to require an explanation of nonzero length after each nolint directive. Default is false.
@@ -111,18 +105,10 @@ linters-settings:
111105
reason: "There must be no Beats dependency"
112106

113107
staticcheck:
114-
# Select the Go version to target. The default is '1.13'.
115-
go: "1.22.5"
116108
# https://staticcheck.io/docs/options#checks
117109
checks: ["all"]
118110

119111
stylecheck:
120-
# Select the Go version to target. The default is '1.13'.
121-
go: "1.22.5"
122112
# https://staticcheck.io/docs/options#checks
123113
checks: ["all"]
124114

125-
unused:
126-
# Select the Go version to target. The default is '1.13'.
127-
go: "1.22.5"
128-

NOTICE.txt

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -644,37 +644,6 @@ Contents of probable licence file $GOMODCACHE/go.elastic.co/go-licence-detector@
644644
limitations under the License.
645645

646646

647-
--------------------------------------------------------------------------------
648-
Dependency : go.uber.org/goleak
649-
Version: v1.3.0
650-
Licence type (autodetected): MIT
651-
--------------------------------------------------------------------------------
652-
653-
Contents of probable licence file $GOMODCACHE/go.uber.org/[email protected]/LICENSE:
654-
655-
The MIT License (MIT)
656-
657-
Copyright (c) 2018 Uber Technologies, Inc.
658-
659-
Permission is hereby granted, free of charge, to any person obtaining a copy
660-
of this software and associated documentation files (the "Software"), to deal
661-
in the Software without restriction, including without limitation the rights
662-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
663-
copies of the Software, and to permit persons to whom the Software is
664-
furnished to do so, subject to the following conditions:
665-
666-
The above copyright notice and this permission notice shall be included in
667-
all copies or substantial portions of the Software.
668-
669-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
670-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
671-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
672-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
673-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
674-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
675-
THE SOFTWARE.
676-
677-
678647
--------------------------------------------------------------------------------
679648
Dependency : golang.org/x/tools
680649
Version: v0.23.0
@@ -1289,11 +1258,11 @@ DEALINGS IN THE SOFTWARE.
12891258

12901259
--------------------------------------------------------------------------------
12911260
Dependency : github.com/stretchr/objx
1292-
Version: v0.5.2
1261+
Version: v0.1.0
12931262
Licence type (autodetected): MIT
12941263
--------------------------------------------------------------------------------
12951264

1296-
Contents of probable licence file $GOMODCACHE/github.com/stretchr/objx@v0.5.2/LICENSE:
1265+
Contents of probable licence file $GOMODCACHE/github.com/stretchr/objx@v0.1.0/LICENSE:
12971266

12981267
The MIT License
12991268

@@ -1321,11 +1290,11 @@ SOFTWARE.
13211290

13221291
--------------------------------------------------------------------------------
13231292
Dependency : github.com/stretchr/testify
1324-
Version: v1.9.0
1293+
Version: v1.6.1
13251294
Licence type (autodetected): MIT
13261295
--------------------------------------------------------------------------------
13271296

1328-
Contents of probable licence file $GOMODCACHE/github.com/stretchr/testify@v1.9.0/LICENSE:
1297+
Contents of probable licence file $GOMODCACHE/github.com/stretchr/testify@v1.6.1/LICENSE:
13291298

13301299
MIT License
13311300

@@ -1962,11 +1931,11 @@ Contents of probable licence file $GOMODCACHE/gopkg.in/[email protected]/LICENSE:
19621931

19631932
--------------------------------------------------------------------------------
19641933
Dependency : gopkg.in/yaml.v3
1965-
Version: v3.0.1
1934+
Version: v3.0.0-20200313102051-9f266ea9e77c
19661935
Licence type (autodetected): MIT
19671936
--------------------------------------------------------------------------------
19681937

1969-
Contents of probable licence file $GOMODCACHE/gopkg.in/[email protected].1/LICENSE:
1938+
Contents of probable licence file $GOMODCACHE/gopkg.in/[email protected].0-20200313102051-9f266ea9e77c/LICENSE:
19701939

19711940

19721941
This project is covered by two different licenses: MIT and Apache.

benchmarks/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/elastic/lunes/benchmarks
22

3-
go 1.22.5
3+
go 1.21.0
44

55
require (
66
github.com/elastic/lunes v0.0.0-00010101000000-000000000000

benchmarks/go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ github.com/goodsign/monday v1.0.2 h1:k8kRMkCRVfCTWOU4dRfRgneQsWlB1+mJd3MxG0lGLzQ
22
github.com/goodsign/monday v1.0.2/go.mod h1:r4T4breXpoFwspQNM+u2sLxJb2zyTaxVGqUfTBjWOu8=
33
github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=
44
github.com/magefile/mage v1.15.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
5-
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
6-
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
module github.com/elastic/lunes
22

3-
go 1.22.5
3+
go 1.21.0
44

55
require (
66
github.com/elastic/go-licenser v0.4.2
77
github.com/magefile/mage v1.15.0
88
go.elastic.co/go-licence-detector v0.6.1
9-
go.uber.org/goleak v1.3.0
109
golang.org/x/tools v0.23.0
1110
)
1211

@@ -17,7 +16,6 @@ require (
1716
github.com/karrick/godirwalk v1.15.6 // indirect
1817
github.com/markbates/pkger v0.17.0 // indirect
1918
github.com/sergi/go-diff v1.1.0 // indirect
20-
github.com/stretchr/testify v1.9.0 // indirect
2119
golang.org/x/mod v0.19.0 // indirect
2220
golang.org/x/sync v0.7.0 // indirect
2321
)

go.sum

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNX
2727
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
2828
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
2929
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
30+
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
3031
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
31-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
32-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
3332
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
3433
go.elastic.co/go-licence-detector v0.6.1 h1:T2PFHYdow+9mAjj6K5ehn5anTxtsURfom2P4S6PgMzg=
3534
go.elastic.co/go-licence-detector v0.6.1/go.mod h1:qQ1clBRS2f0Ee5ie+y2LLYnyhSNJNm0Ha6d7SoYVtM4=
36-
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
37-
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
3835
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
3936
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
4037
golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
@@ -89,6 +86,5 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8
8986
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
9087
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
9188
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
89+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
9290
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
93-
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
94-
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

package_test.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)