diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 61d9c788..5a7da6b4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Describe plugin id: plugin_describe diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 99fe4a5a..bd85f528 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Setup tools run: | @@ -38,7 +38,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Setup tools run: | @@ -46,6 +46,8 @@ jobs: - name: make lint-go run: | + # Explicitly set GOROOT to avoid golangci-lint/issues/3107 + export GOROOT=$(go env GOROOT) make lint-go test: @@ -64,7 +66,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Setup tools run: | diff --git a/Dockerfile b/Dockerfile index 0a725c20..5d28714d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.18 AS builder +FROM golang:1.19 AS builder MAINTAINER Usacloud Authors RUN set -x diff --git a/go.mod b/go.mod index 518b2523..11a87c6c 100644 --- a/go.mod +++ b/go.mod @@ -102,4 +102,4 @@ require ( replace github.com/zclconf/go-cty => github.com/azr/go-cty v1.1.1-0.20200203143058-28fcda2fe0cc -go 1.18 +go 1.19