0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00

feat: Update to Go 1.19 (#280)

* feat: Update to Go 1.19

* fix order of steps in CI
This commit is contained in:
Pavel Boldyrev 2023-03-27 17:43:55 -04:00 committed by GitHub
parent edd96857e6
commit 8edfe9c7c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 18 deletions

View File

@ -14,14 +14,14 @@ jobs:
name: lint name: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3
with: with:
version: v1.50 version: v1.52
only-new-issues: true only-new-issues: true

View File

@ -24,7 +24,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: 1.18 go-version-file: 'go.mod'
- name: Import GPG key - name: Import GPG key
id: import_gpg id: import_gpg

View File

@ -17,13 +17,13 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.18' go-version-file: 'go.mod'
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies - name: Get dependencies
run: go mod download run: go mod download
@ -54,13 +54,13 @@ jobs:
- '1.4.2' - '1.4.2'
steps: steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.18' go-version-file: 'go.mod'
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies - name: Get dependencies
run: go mod download run: go mod download

View File

@ -24,9 +24,9 @@ other enhancements.
## Requirements ## Requirements
- [Terraform](https://www.terraform.io/downloads.html) 1.1+ - [Terraform](https://www.terraform.io/downloads.html) 1.2+
- [Go](https://golang.org/doc/install) 1.18+ (to build the provider plugin) - [Go](https://golang.org/doc/install) 1.19+ (to build the provider plugin)
- [GoReleaser](https://goreleaser.com/install/) v1.10+ (to build the provider plugin) - [GoReleaser](https://goreleaser.com/install/) v1.15+ (to build the provider plugin)
## Table of Contents ## Table of Contents

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/bpg/terraform-provider-proxmox module github.com/bpg/terraform-provider-proxmox
go 1.18 go 1.19
require ( require (
github.com/google/go-querystring v1.1.0 github.com/google/go-querystring v1.1.0

View File

@ -1,6 +1,6 @@
module github.com/golang-templates/seed/build module github.com/golang-templates/seed/build
go 1.16 go 1.19
require ( require (
github.com/ProtonMail/go-crypto v0.0.0-20211112122917-428f8eabeeb3 // indirect github.com/ProtonMail/go-crypto v0.0.0-20211112122917-428f8eabeeb3 // indirect