Skip to content

Commit

Permalink
chore: upgrade to go 1.18 (#1466)
Browse files Browse the repository at this point in the history
* go 1.18

gsed -i 's/1\.17/1.18/' Dockerfile* go.mod .github/workflows/*

* golangci-lint 1.45

golangci/golangci-lint#2438
https://github.com/golangci/golangci-lint/releases/tag/v1.45.0
  • Loading branch information
PatMyron committed Mar 28, 2022
1 parent 32f1a7e commit a89980a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-resources.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Expand Up @@ -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: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
@@ -1,4 +1,4 @@
FROM golang:1.17 as builder
FROM golang:1.18 as builder

ARG ARCH=linux64

Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit a89980a

Please sign in to comment.