Merge pull request #123 from ddelnano/upgrade-go-1-20

Upgrade go to 1.20 to reflect latest packer-plugins-sdk go version an…
This commit is contained in:
Dom Delnano 2024-03-05 21:44:08 -08:00 committed by GitHub
commit 7a9e710071
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 4 deletions

View File

@ -19,6 +19,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: "1.20"
- name: Run go tests
run: go test -race -count 1 ./... -timeout=3m

View File

@ -25,7 +25,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')"

1
.go-version Normal file
View File

@ -0,0 +1 @@
1.20.11

View File

@ -45,7 +45,7 @@ If you are using an older version of packer or are still using json templates yo
### Dependencies
* Packer >= v1.7.1 (https://packer.io)
* XenServer / Citrix Hypervisor > 7.6
* Golang 1.17
* Golang 1.20
## Compile the plugin

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/xenserver/packer-builder-xenserver
go 1.17
go 1.20
require (
github.com/amfranz/go-xmlrpc-client v0.0.0-20190612172737-76858463955d