Skip to content

Commit

Permalink
Reverting go 1.20 to go 1.19
Browse files Browse the repository at this point in the history
Signed-off-by: rohitagg2020 <rohit.aggarwal2020@gmail.com>
  • Loading branch information
rohitagg2020 committed Mar 3, 2023
1 parent c9b34e0 commit c85d3ee
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- name: Install Go 1.20.1
- name: Install Go 1.19.6
uses: actions/setup-go@v3
with:
go-version: "1.20.1"
go-version: "1.19.6"
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
version: v1.49.0
args: -v

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.1
go-version: 1.19.6
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5e15885530fb01d81d1f24e8a6f54ebbd0fed7eb
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v1
with:
go-version: "1.20.1"
go-version: "1.19.6"
- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
repo: carvel-dev/vendir
tool: vendir
goVersion: 1.20.1
goVersion: 1.19.6
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
slackWebhookURL: ${{ secrets.SLACK_WEBHOOK_URL }}
4 changes: 4 additions & 0 deletions cmd/vendir/vendir.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ package main
import (
"io"
"log"
"math/rand"
"os"
"time"

uierrs "github.com/cppforlife/go-cli-ui/errors"
"github.com/cppforlife/go-cli-ui/ui"
"github.com/vmware-tanzu/carvel-vendir/pkg/vendir/cmd"
)

func main() {
rand.Seed(time.Now().UTC().UnixNano())

log.SetOutput(io.Discard)

// TODO logs
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/vmware-tanzu/carvel-vendir

go 1.20
go 1.19

require (
github.com/bmatcuk/doublestar v1.2.1
Expand Down

0 comments on commit c85d3ee

Please sign in to comment.