Skip to content

Upgrade to go 1.24 #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .env.tools
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export TOOLS_BUILDNUMBER=20241108.3

export TOOLS_BUILDNUMBER=20250415.2
4 changes: 2 additions & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
go-version: '1.24'
cache: false
- name: Check formatting
uses: Jerome1337/[email protected]
Expand All @@ -30,7 +30,7 @@ jobs:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.60
version: v1.64.2
- name: Install Task
uses: arduino/setup-task@v2
with:
Expand Down
8 changes: 3 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ linters-settings:
goimports:
local-prefixes: github.com/golangci/golangci-lint
govet:
enable-all: true
disable:
- fieldalignment
settings:
printf:
funcs:
Expand All @@ -107,8 +110,6 @@ linters-settings:
# goconst - see ticket #3097
# goerr113 - disabled see https://github.com/Djarvur/go-err113/issues/10
# gofumpt - not useful - confusing messages
# gomnd - see ticket #3116
# govet - see ticket #3117
# nilreturn onwardis not yet evaluated...
# misspell - expected UK spelling with misspell, but customer facing text needs to be US.
# tagalign - suppress until we can get a golang code formatter that will fix this (cosmetic)
Expand All @@ -130,9 +131,7 @@ linters:
- err113
- errchkjson
- errname
- execinquery
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
# DONT re-enable funlen please
Expand All @@ -146,7 +145,6 @@ linters:
- godox
- gofumpt
- gomoddirectives
- gomnd
- gosec
- gosimple
- inamedparam
Expand Down
2 changes: 1 addition & 1 deletion azblob/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (azp *Storer) Reader(
return nil, metadataErr
}
if parseErr := readerResponseMetadata(resp, metaData); parseErr != nil {
return nil, err
return nil, parseErr
}
}

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/datatrails/go-datatrails-common

go 1.23.0
go 1.24

require (
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
Expand All @@ -18,7 +18,7 @@ require (

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 // indirect
github.com/Azure/go-autorest/autorest v0.11.29 // indirect
github.com/Azure/go-autorest/autorest v0.11.28 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3 // indirect
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
Expand Down
4 changes: 1 addition & 3 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading