Skip to content

Commit b96c7bd

Browse files
author
Lucas Yoon
committed
support Go 1.24 && change failing tests due to stricter linting rules
Signed-off-by: Lucas Yoon <[email protected]>
1 parent 5c3d7b9 commit b96c7bd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

generator/go.mod

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

3-
go 1.22
3+
go 1.24
44

55
require (
66
github.com/coreos/go-semver v0.3.1

go.mod

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

3-
go 1.22.0
3+
go 1.24
44

55
require (
66
github.com/ghodss/yaml v1.0.0

test/v200/utils/api/test_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func RunTest(testContent commonUtils.TestContent, t *testing.T) {
183183

184184
testDevfile, err := commonUtils.GetDevfile(testContent.FileName, nil, validator)
185185
if err != nil {
186-
t.Fatalf(commonUtils.LogMessage(fmt.Sprintf("Error creating devfile : %v", err)))
186+
t.Fatal(commonUtils.LogMessage(fmt.Sprintf("Error creating devfile : %v", err)))
187187
}
188188

189189
testDevfile.RunTest(testContent, t)

test/v200/utils/common/test_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func (testDevfile *TestDevfile) RunTest(testContent TestContent, t *testing.T) {
368368

369369
err := testDevfile.Validator.WriteAndValidate(testDevfile)
370370
if err != nil {
371-
t.Fatalf(LogErrorMessage(fmt.Sprintf("ERROR verifying devfile : %s : %v", testContent.FileName, err)))
371+
t.Fatal(LogErrorMessage(fmt.Sprintf("ERROR verifying devfile : %s : %v", testContent.FileName, err)))
372372
}
373373

374374
}

0 commit comments

Comments
 (0)