Skip to content

Commit

Permalink
Update go to v1.20 (#226)
Browse files Browse the repository at this point in the history
* Update go to v1.20

* Update golangci-lint to v1.52.2
  • Loading branch information
optik-aper authored Apr 3, 2023
1 parent d2b4870 commit b42c9eb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 834 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gochecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: "1.20"

- name: Install dependencies
run: |
go version
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
- name: Run golangci-lint
run: |
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: "1.20"

- name: Run fmt
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.17.0'
go-version: '^1.20'
- run: make test
env:
PACKER_ACC: ${{ secrets.PACKER_ACC }}
VULTR_API_KEY: ${{ secrets.VULTR_API_KEY }}

notify:
name: MatterMost Notifcation
runs-on: ubuntu-latest
Expand All @@ -28,4 +28,4 @@ jobs:
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: "1.20"
- name: Describe plugin
id: plugin_describe
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"
Expand All @@ -76,4 +76,4 @@ jobs:
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.17
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.17
go-version: "1.20"
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: make test
env:
VULTR_API_KEY: ${{ secrets.VULTR_API_KEY }}
VULTR_API_KEY: ${{ secrets.VULTR_API_KEY }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is a [HashiCorp Packer](https://www.packer.io/) plugin for creating [Vultr]

## Requirements
* [Packer](https://www.packer.io/intro/getting-started/install.html)
* [Go 1.17+](https://golang.org/doc/install)
* [Go 1.20+](https://golang.org/doc/install)

## Build & Installation

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/vultr/packer-plugin-vultr

go 1.17
go 1.20

require (
github.com/hashicorp/hcl/v2 v2.14.0
Expand Down
821 changes: 0 additions & 821 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit b42c9eb

Please sign in to comment.