Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
upgrade go version to fix depency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoCMoraes committed May 23, 2024
1 parent b8a75f2 commit 28f10bd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

name: "Go Test"

on: [ workflow_dispatch, push ]
on: [workflow_dispatch, push]

env:
PACKER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: TESTARGS="-coverprofile=coverage.txt -covermode=atomic" make ci
darwin-go-tests:
runs-on: macos-latest
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: go test ./... -coverprofile=coverage.txt -covermode=atomic
windows-go-tests:
runs-on: windows-latest
Expand All @@ -39,5 +39,5 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: go test ./... -coverprofile=coverage.txt -covermode=atomic
12 changes: 6 additions & 6 deletions .github/workflows/go-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: "Go Validate"

on: [ workflow_dispatch, push ]
on: [workflow_dispatch, push]

permissions:
contents: read
Expand All @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: go mod tidy
check-lint:
runs-on: ubuntu-latest
Expand All @@ -28,7 +28,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: echo "$GITHUB_SHA"
- run: git fetch --all
- run: echo $(git merge-base origin/main $GITHUB_SHA)
Expand All @@ -37,10 +37,10 @@ jobs:
runs-on: ubuntu-latest
name: Fmt check
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: make fmt-check
check-generate:
runs-on: ubuntu-latest
Expand All @@ -49,5 +49,5 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
go-version: "1.19"
- run: make generate-check
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18.9
1.19
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/hashicorp/packer

go 1.18
go 1.19

require (
cloud.google.com/go v0.110.0 // indirect
Expand Down

0 comments on commit 28f10bd

Please sign in to comment.