Skip to content

Commit

Permalink
Merge branch 'master' into top
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMieg authored Jan 22, 2024
2 parents dd3e65f + 0117942 commit b1609f6
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'

- name: Install Groovy
run: sudo apt-get update && sudo apt-get install groovy -y
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-go-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'
- name: Perform update
run: |
git checkout -B gh-action-update-golang-dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload-go-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'
- env:
CGO_ENABLED: 0
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/verify-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: styfle/[email protected]
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'
- name: Cache Golang Packages
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'
- name: Cache Golang Packages
uses: actions/cache@v3
with:
Expand All @@ -63,8 +63,8 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
# action requires go@1.19
go-version: '1.20.x'
# action requires go@1.20
- name: checkout
uses: actions/checkout@v4
with:
Expand All @@ -79,7 +79,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'
- name: Cache Golang Packages
uses: actions/cache@v3
with:
Expand All @@ -99,7 +99,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.19.x'
go-version: '1.20.x'
- name: Cache Golang Packages
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS build-env
FROM golang:1.20 AS build-env
COPY . /build
WORKDIR /build

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/SAP/jenkins-library

go 1.19
go 1.20

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

go 1.19
go 1.20

require github.com/gorilla/mux v1.8.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/example/golang-app

go 1.19
go 1.20
12 changes: 6 additions & 6 deletions pkg/command/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func TestShellRun(t *testing.T) {
}
})
t.Run("stderr", func(t *testing.T) {
expectedErr := "Stderr: command /bin/bash\n"
if eStr := e.String(); eStr != expectedErr {
t.Errorf("expected: %v got: %v", expectedErr, eStr)
expectedErr := "Stderr: command /bin/bash"
if !strings.Contains(e.String(), expectedErr) {
t.Errorf("expected: %v got: %v", expectedErr, e.String())
}
})
})
Expand Down Expand Up @@ -74,9 +74,9 @@ func TestExecutableRun(t *testing.T) {
}
})
t.Run("stderr", func(t *testing.T) {
expectedErr := "Stderr: command echo\n"
if eStr := stderr.String(); eStr != expectedErr {
t.Errorf("expected: %v got: %v", expectedErr, eStr)
expectedErr := "Stderr: command echo"
if !strings.Contains(stderr.String(), expectedErr) {
t.Errorf("expected: %v got: %v", expectedErr, stderr.String())
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestSend(t *testing.T) {

// then
assert.Error(t, err)
assert.Contains(t, err.Error(), "lookup proxy.dummy.sap.com: no such host")
assert.Contains(t, err.Error(), "no such host")
assert.Nil(t, response)
})
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/mock/fileUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func (f *FilesMock) CreateArchive(content map[string][]byte) ([]byte, error) {
err := tw.WriteHeader(&tar.Header{
Name: fileName,
Size: int64(len(fileContent)),
Typeflag: tar.TypeRegA,
Typeflag: tar.TypeReg,
})

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion src/com/sap/piper/PiperGoUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PiperGoUtils implements Serializable {

if (steps.env.REPOSITORY_UNDER_TEST && steps.env.LIBRARY_VERSION_UNDER_TEST) {
steps.echo("Running in a consumer test, building unit-under-test binary for verification.")
steps.dockerExecute(script: steps, dockerImage: 'golang:1.19', dockerOptions: '-u 0', dockerEnvVars: [
steps.dockerExecute(script: steps, dockerImage: 'golang:1.20', dockerOptions: '-u 0', dockerEnvVars: [
REPOSITORY_UNDER_TEST: steps.env.REPOSITORY_UNDER_TEST,
LIBRARY_VERSION_UNDER_TEST: steps.env.LIBRARY_VERSION_UNDER_TEST
]) {
Expand Down

0 comments on commit b1609f6

Please sign in to comment.