Skip to content

Commit 0886382

Browse files
authored
feat: bump to build with go1.24 (#2239)
* feat: bump to build with go1.24 Signed-off-by: Rui Chen <[email protected]> * chore: golangci-lint 1.64.4 Signed-off-by: Rui Chen <[email protected]> * fix: ensure constant format strings in fmt and printf calls Signed-off-by: Rui Chen <[email protected]> --------- Signed-off-by: Rui Chen <[email protected]>
1 parent ac23b40 commit 0886382

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
- name: Run linters
2626
uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # v6.3.2
2727
with:
28-
version: v1.62.2
28+
version: v1.64.4

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.21 AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine3.21 AS builder
22

33
ARG TARGETOS TARGETARCH
44

docs/developer-guide/building.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Building TFLint
22

3-
Go 1.23 or higher is required to build TFLint from source code. Clone the source code and run the `make` command. Built binary will be placed in `dist` directory.
3+
Go 1.24 or higher is required to build TFLint from source code. Clone the source code and run the `make` command. Built binary will be placed in `dist` directory.
44

55
```console
66
$ git clone https://github.com/terraform-linters/tflint.git

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/terraform-linters/tflint
22

3-
go 1.23
3+
go 1.24.0
44

55
require (
66
github.com/agext/levenshtein v1.2.3

terraform/addrs/parse_ref_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ func TestParseRef(t *testing.T) {
848848
}
849849

850850
for _, problem := range deep.Equal(got, test.Want) {
851-
t.Errorf(problem)
851+
t.Errorf("%s", problem)
852852
}
853853
})
854854
}

terraform/lang/funcs/collection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ var SumFunc = function.New(&function.Spec{
515515
ty := args[0].Type()
516516

517517
if !ty.IsListType() && !ty.IsSetType() && !ty.IsTupleType() {
518-
return cty.NilVal, function.NewArgErrorf(0, fmt.Sprintf("argument must be list, set, or tuple. Received %s", ty.FriendlyName()))
518+
return cty.NilVal, function.NewArgErrorf(0, "argument must be list, set, or tuple. Received %s", ty.FriendlyName())
519519
}
520520

521521
if !args[0].IsWhollyKnown() {

terraform/lang/funcs/crypto.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ var RsaDecryptFunc = function.New(&function.Spec{
175175
default:
176176
errStr = fmt.Sprintf("invalid private key: %s", e)
177177
}
178-
return cty.UnknownVal(cty.String), function.NewArgErrorf(1, errStr)
178+
return cty.UnknownVal(cty.String), function.NewArgErrorf(1, "%s", errStr)
179179
}
180180
privateKey, ok := rawKey.(*rsa.PrivateKey)
181181
if !ok {

0 commit comments

Comments
 (0)