Skip to content

Commit 11245c6

Browse files
authored
build(go): update Go version to 1.23 (#57)
Upgraded the Go version specified in go.mod from 1.22 to 1.23 to ensure compatibility with the latest language features and improvements.
2 parents 20fa55e + 2be7f7b commit 11245c6

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
go-version-file: go.mod
3535
cache: true
3636
- name: Lint
37-
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v3.7.1
37+
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
3838
with:
39-
version: v1.55
39+
version: v1.61
4040

4141
unit-test:
4242
name: Unit Test

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
output:
2-
format: github-actions
2+
formats:
3+
- format: colored-line-number
34

45
linters-settings:
56
lll:

backstage/entity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ func (s *entityService) List(ctx context.Context, options *ListEntityOptions) ([
216216
values.Add("filter", f)
217217
}
218218

219-
if options.Fields != nil && len(options.Fields) > 0 {
219+
if len(options.Fields) > 0 {
220220
values.Add("fields", strings.Join(options.Fields, ","))
221221
}
222222

223-
if options.Order != nil && len(options.Order) > 0 {
223+
if len(options.Order) > 0 {
224224
for _, o := range options.Order {
225225
if order, err := o.string(); err != nil {
226226
return nil, nil, err

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/tdabasinskas/go-backstage/v2
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
github.com/h2non/gock v1.2.0

0 commit comments

Comments
 (0)