Skip to content

Commit

Permalink
Merge pull request #189 from cpanato/upgrade-go
Browse files Browse the repository at this point in the history
upgrade to go1.23 and test with terrafom 1.9 and drop terraform 1.6
  • Loading branch information
imjasonh authored Oct 1, 2024
2 parents 8151cb1 + f2242e8 commit 408c27a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
go-version-file: './go.mod'
check-latest: true
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- run: git fetch --prune --unshallow
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
go-version-file: './go.mod'
check-latest: true
cache: true

# This is provisioned here: https://github.com/chainguard-dev/secrets/blob/main/terraform-provider-ko.tf
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
go-version-file: './go.mod'
check-latest: true
- run: go generate ./...
- name: git diff
Expand All @@ -27,14 +27,14 @@ jobs:
fail-fast: false
matrix:
terraform:
- '1.6.*'
- '1.7.*'
- '1.8.*'
- '1.9.*'
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
go-version-file: './go.mod'
check-latest: true

- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ jobs:

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
go-version-file: './go.mod'
check-latest: true

- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: v1.56
args: --timeout=10m
version: v1.61
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
timeout: 5m
timeout: 10m

issues:
exclude-rules:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
before:

before:
hooks:
- go mod tidy
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ko-build/terraform-provider-ko

go 1.22.3
go 1.23

require (
github.com/aws/aws-lambda-go v1.47.0
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_ko_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func doPublish(ctx context.Context, r build.Result, opts buildOptions) (string,
publish.WithUserAgent(userAgent),
}

if opts.tags != nil && len(opts.tags) > 0 {
if len(opts.tags) > 0 {
po = append(po, publish.WithTags(opts.tags))
}

Expand Down

0 comments on commit 408c27a

Please sign in to comment.