From 8edfe9c7c54c9554adca52ffcf31c091f1fce11f Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Mon, 27 Mar 2023 17:43:55 -0400 Subject: [PATCH] feat: Update to Go 1.19 (#280) * feat: Update to Go 1.19 * fix order of steps in CI --- .github/workflows/golangci-lint.yml | 8 ++++---- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 16 ++++++++-------- README.md | 6 +++--- go.mod | 2 +- tools/go.mod | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index be0e384a..af50debc 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,14 +14,14 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 - with: - go-version: 1.19 - uses: actions/checkout@v3 with: fetch-depth: 0 + - uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.50 + version: v1.52 only-new-issues: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f748715e..99162e2e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version-file: 'go.mod' - name: Import GPG key id: import_gpg diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15a0cdfe..23d6d570 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,13 +17,13 @@ jobs: timeout-minutes: 5 steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.18' - - - name: Check out code into the Go module directory - uses: actions/checkout@v3 + go-version-file: 'go.mod' - name: Get dependencies run: go mod download @@ -54,13 +54,13 @@ jobs: - '1.4.2' steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.18' - - - name: Check out code into the Go module directory - uses: actions/checkout@v3 + go-version-file: 'go.mod' - name: Get dependencies run: go mod download diff --git a/README.md b/README.md index 7f76760e..0fd23059 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ other enhancements. ## Requirements -- [Terraform](https://www.terraform.io/downloads.html) 1.1+ -- [Go](https://golang.org/doc/install) 1.18+ (to build the provider plugin) -- [GoReleaser](https://goreleaser.com/install/) v1.10+ (to build the provider plugin) +- [Terraform](https://www.terraform.io/downloads.html) 1.2+ +- [Go](https://golang.org/doc/install) 1.19+ (to build the provider plugin) +- [GoReleaser](https://goreleaser.com/install/) v1.15+ (to build the provider plugin) ## Table of Contents diff --git a/go.mod b/go.mod index 5c04116f..2a4dcbbc 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bpg/terraform-provider-proxmox -go 1.18 +go 1.19 require ( github.com/google/go-querystring v1.1.0 diff --git a/tools/go.mod b/tools/go.mod index d18f3d45..f0fe6b7b 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/golang-templates/seed/build -go 1.16 +go 1.19 require ( github.com/ProtonMail/go-crypto v0.0.0-20211112122917-428f8eabeeb3 // indirect