From a89980a1ddc3cd6eaca430fb94c4df929fc7afc7 Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Mon, 28 Mar 2022 04:02:15 -0700 Subject: [PATCH] chore: upgrade to go 1.18 (#1466) * go 1.18 gsed -i 's/1\.17/1.18/' Dockerfile* go.mod .github/workflows/* * golangci-lint 1.45 https://github.com/golangci/golangci-lint/pull/2438 https://github.com/golangci/golangci-lint/releases/tag/v1.45.0 --- .github/workflows/check-resources.yml | 2 +- .github/workflows/create-release.yml | 2 +- .github/workflows/go.yml | 10 +++++----- Dockerfile | 2 +- Dockerfile.ci | 2 +- go.mod | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-resources.yml b/.github/workflows/check-resources.yml index 08bb4c3d71f..04e56c88874 100644 --- a/.github/workflows/check-resources.yml +++ b/.github/workflows/check-resources.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 1f57434850f..8419f22c191 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Build project run: | diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 869088af14e..3a02ec36d8e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,13 +16,13 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Run golangci-lint uses: golangci/golangci-lint-action@v2.5.2 with: # Required: the version of golangci-lint is required and must be specified without patch version: they always use the latest patch version. - version: v1.41 + version: v1.45 args: --timeout 3m0s - name: Install Terragrunt v0.31.8 @@ -64,7 +64,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Test (AWS) run: make test_aws @@ -81,7 +81,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Test (Google) run: make test_google @@ -98,7 +98,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Test (Azure) run: make test_azure diff --git a/Dockerfile b/Dockerfile index 26e58b45012..66085b87674 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17 as builder +FROM golang:1.18 as builder ARG ARCH=linux ARG DEFAULT_TERRAFORM_VERSION=0.15.5 diff --git a/Dockerfile.ci b/Dockerfile.ci index 83daafa2dfb..120d4ba313f 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1,4 +1,4 @@ -FROM golang:1.17 as builder +FROM golang:1.18 as builder ARG ARCH=linux64 diff --git a/go.mod b/go.mod index f37cf94bc42..444dc77c1b1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/infracost/infracost -go 1.17 +go 1.18 require ( github.com/Masterminds/goutils v1.1.0 // indirect