chore: Upgrade required go version

Since we're using the toolchain directive to generate enum helper
classes, we need go 1.21+
This commit is contained in:
xvlcwk
2024-02-07 22:47:05 +01:00
committed by chris
parent a732c2009e
commit c7cd148f8e
3 changed files with 13 additions and 13 deletions

View File

@@ -12,10 +12,10 @@ jobs:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up GO 1.20.x
- name: Set up GO 1.21.x
uses: actions/setup-go@v1
with:
go-version: '1.20'
go-version: '1.21'
- run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Setup Environment
run: make ci-build-setup
@@ -27,10 +27,10 @@ jobs:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up GO 1.20.x
- name: Set up GO 1.21.x
uses: actions/setup-go@v1
with:
go-version: '1.20'
go-version: '1.21'
- run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Setup Environment
run: make ci-build-setup
@@ -42,10 +42,10 @@ jobs:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up GO 1.20.x
- name: Set up GO 1.21.x
uses: actions/setup-go@v1
with:
go-version: '1.20'
go-version: '1.21'
- run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Login to Docker Hub
uses: docker/login-action@v1
@@ -66,10 +66,10 @@ jobs:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up GO 1.20.x
- name: Set up GO 1.21.x
uses: actions/setup-go@v1
with:
go-version: '1.20'
go-version: '1.21'
- run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Setup Environment
run: make ci-build-setup
@@ -81,10 +81,10 @@ jobs:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up GO 1.20.x
- name: Set up GO 1.21.x
uses: actions/setup-go@v1
with:
go-version: '1.20'
go-version: '1.21'
- run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Setup Environment
run: make ci-build-setup

View File

@@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: '1.21'
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3

View File

@@ -35,8 +35,8 @@ resource "bitbucketserver_repository" "test" {
### Requirements
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
- [Go](https://golang.org/doc/install) 1.11+
- [Terraform](https://www.terraform.io/downloads.html) 1.x.x
- [Go](https://golang.org/doc/install) 1.21+
- correctly setup [GOPATH](http://golang.org/doc/code.html#GOPATH
- add `$GOPATH/bin` to your `$PATH`
- clone this repository to `$GOPATH/src/github.com/xvlcwk-terraform/terraform-provider-bitbucketserver`