Skip to content

Commit c85d3ee

Browse files
committed
Reverting go 1.20 to go 1.19
Signed-off-by: rohitagg2020 <[email protected]>
1 parent c9b34e0 commit c85d3ee

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
name: lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Install Go 1.20.1
15+
- name: Install Go 1.19.6
1616
uses: actions/setup-go@v3
1717
with:
18-
go-version: "1.20.1"
18+
go-version: "1.19.6"
1919
- uses: actions/checkout@v2
2020
with:
2121
fetch-depth: '0'
2222
- name: golangci-lint
2323
uses: golangci/golangci-lint-action@v3
2424
with:
25-
version: v1.51.2
25+
version: v1.49.0
2626
args: -v
2727

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.20.1
21+
go-version: 1.19.6
2222
- name: Run GoReleaser
2323
uses: goreleaser/goreleaser-action@5e15885530fb01d81d1f24e8a6f54ebbd0fed7eb
2424
if: startsWith(github.ref, 'refs/tags/')

.github/workflows/test-gh.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go 1.x
1414
uses: actions/setup-go@v1
1515
with:
16-
go-version: "1.20.1"
16+
go-version: "1.19.6"
1717
- name: Check out code into the Go module directory
1818
uses: actions/checkout@v1
1919
with:

.github/workflows/trivy-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
with:
1111
repo: carvel-dev/vendir
1212
tool: vendir
13-
goVersion: 1.20.1
13+
goVersion: 1.19.6
1414
secrets:
1515
githubToken: ${{ secrets.GITHUB_TOKEN }}
1616
slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL }}

cmd/vendir/vendir.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ package main
66
import (
77
"io"
88
"log"
9+
"math/rand"
910
"os"
11+
"time"
1012

1113
uierrs "github.com/cppforlife/go-cli-ui/errors"
1214
"github.com/cppforlife/go-cli-ui/ui"
1315
"github.com/vmware-tanzu/carvel-vendir/pkg/vendir/cmd"
1416
)
1517

1618
func main() {
19+
rand.Seed(time.Now().UTC().UnixNano())
20+
1721
log.SetOutput(io.Discard)
1822

1923
// TODO logs

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vmware-tanzu/carvel-vendir
22

3-
go 1.20
3+
go 1.19
44

55
require (
66
github.com/bmatcuk/doublestar v1.2.1

0 commit comments

Comments
 (0)