Skip to content

Commit e54d603

Browse files
Jk1484I557621
and
I557621
authored
chore(deps): update golang version to 1.19 (#4533)
Co-authored-by: I557621 <[email protected]>
1 parent 73de970 commit e54d603

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

.github/workflows/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-go@v4
2525
with:
26-
go-version: '1.18.x'
26+
go-version: '1.19.x'
2727

2828
- name: Install Groovy
2929
run: sudo apt-get update && sudo apt-get install groovy -y

.github/workflows/update-go-dependencies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-go@v4
1515
with:
16-
go-version: '1.18.x'
16+
go-version: '1.19.x'
1717
- name: Perform update
1818
run: |
1919
git checkout -B gh-action-update-golang-dependencies

.github/workflows/upload-go-master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-go@v4
1515
with:
16-
go-version: '1.18.x'
16+
go-version: '1.19.x'
1717
- env:
1818
CGO_ENABLED: 0
1919
run: |

.github/workflows/verify-go.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: styfle/[email protected]
1616
- uses: actions/setup-go@v4
1717
with:
18-
go-version: '1.18.x'
18+
go-version: '1.19.x'
1919
- name: Cache Golang Packages
2020
uses: actions/cache@v3
2121
with:
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: actions/setup-go@v4
4545
with:
46-
go-version: '1.18.x'
46+
go-version: '1.19.x'
4747
- name: Cache Golang Packages
4848
uses: actions/cache@v3
4949
with:
@@ -79,7 +79,7 @@ jobs:
7979
steps:
8080
- uses: actions/setup-go@v4
8181
with:
82-
go-version: '1.18.x'
82+
go-version: '1.19.x'
8383
- name: Cache Golang Packages
8484
uses: actions/cache@v3
8585
with:
@@ -99,7 +99,7 @@ jobs:
9999
steps:
100100
- uses: actions/setup-go@v4
101101
with:
102-
go-version: '1.18.x'
102+
go-version: '1.19.x'
103103
- name: Cache Golang Packages
104104
uses: actions/cache@v3
105105
with:

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18 AS build-env
1+
FROM golang:1.19 AS build-env
22
COPY . /build
33
WORKDIR /build
44

cmd/newmanExecute_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
package cmd
55

66
import (
7-
"github.com/google/uuid"
87
"os"
98
"path/filepath"
109
"strings"
1110
"testing"
1211

1312
sliceUtils "github.com/SAP/jenkins-library/pkg/piperutils"
13+
"github.com/google/uuid"
1414
"github.com/pkg/errors"
1515
"github.com/stretchr/testify/assert"
1616
)
@@ -143,7 +143,7 @@ func TestRunNewmanExecute(t *testing.T) {
143143
err := runNewmanExecute(&config, &utils)
144144

145145
// assert
146-
assert.EqualError(t, err, "could not parse newman command template: template: template:1: unexpected \"}\" in operand")
146+
assert.EqualError(t, err, "could not parse newman command template: template: template:1: bad character U+007D '}'")
147147
})
148148

149149
t.Run("error on file search", func(t *testing.T) {
@@ -263,7 +263,7 @@ func TestResolveTemplate(t *testing.T) {
263263
config := newmanExecuteOptions{RunOptions: []string{"this", "is", "my", "fancy", "command", "{{.collectionDisplayName}"}}
264264

265265
_, err := resolveTemplate(&config, "theDisplayName")
266-
assert.EqualError(t, err, "could not parse newman command template: template: template:1: unexpected \"}\" in operand")
266+
assert.EqualError(t, err, "could not parse newman command template: template: template:1: bad character U+007D '}'")
267267
})
268268
}
269269

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/SAP/jenkins-library
22

3-
go 1.18
3+
go 1.19
44

55
//downgraded for :https://cs.opensource.google/go/x/crypto/+/5d542ad81a58c89581d596f49d0ba5d435481bcf : or else will break for some github instances
66
// not downgraded using go get since it breaks other dependencies.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/example/golang-app
22

3-
go 1.18
3+
go 1.19
44

55
require github.com/gorilla/mux v1.8.0
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/example/golang-app
22

3-
go 1.18
3+
go 1.19

src/com/sap/piper/PiperGoUtils.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PiperGoUtils implements Serializable {
3030

3131
if (steps.env.REPOSITORY_UNDER_TEST && steps.env.LIBRARY_VERSION_UNDER_TEST) {
3232
steps.echo("Running in a consumer test, building unit-under-test binary for verification.")
33-
steps.dockerExecute(script: steps, dockerImage: 'golang:1.18', dockerOptions: '-u 0', dockerEnvVars: [
33+
steps.dockerExecute(script: steps, dockerImage: 'golang:1.19', dockerOptions: '-u 0', dockerEnvVars: [
3434
REPOSITORY_UNDER_TEST: steps.env.REPOSITORY_UNDER_TEST,
3535
LIBRARY_VERSION_UNDER_TEST: steps.env.LIBRARY_VERSION_UNDER_TEST
3636
]) {

0 commit comments

Comments
 (0)