From c7cd148f8ed9c13a055f4bf7d25067de92f50a36 Mon Sep 17 00:00:00 2001 From: xvlcwk <33735558+xvlcwk@users.noreply.github.com.> Date: Wed, 7 Feb 2024 22:47:05 +0100 Subject: [PATCH] chore: Upgrade required go version Since we're using the toolchain directive to generate enum helper classes, we need go 1.21+ --- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/tag.yml | 2 +- README.md | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d0bcbc..046ec2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 6fb6225..a605f9d 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -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 diff --git a/README.md b/README.md index e80787e..495cca3 100644 --- a/README.md +++ b/README.md @@ -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`