Skip to content

Commit

Permalink
build(go): update Go version to 1.23 (#57)
Browse files Browse the repository at this point in the history
Upgraded the Go version specified in go.mod from 1.22 to 1.23 to ensure
compatibility with the latest language features and improvements.
  • Loading branch information
tdabasinskas authored Sep 17, 2024
2 parents 20fa55e + 2be7f7b commit 11245c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
go-version-file: go.mod
cache: true
- name: Lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v3.7.1
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: v1.55
version: v1.61

unit-test:
name: Unit Test
Expand Down
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
output:
format: github-actions
formats:
- format: colored-line-number

linters-settings:
lll:
Expand Down
4 changes: 2 additions & 2 deletions backstage/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ func (s *entityService) List(ctx context.Context, options *ListEntityOptions) ([
values.Add("filter", f)
}

if options.Fields != nil && len(options.Fields) > 0 {
if len(options.Fields) > 0 {
values.Add("fields", strings.Join(options.Fields, ","))
}

if options.Order != nil && len(options.Order) > 0 {
if len(options.Order) > 0 {
for _, o := range options.Order {
if order, err := o.string(); err != nil {
return nil, nil, err
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tdabasinskas/go-backstage/v2

go 1.22
go 1.23

require (
github.com/h2non/gock v1.2.0
Expand Down

0 comments on commit 11245c6

Please sign in to comment.