Upgrade go to 1.20 to reflect latest packer-plugins-sdk go version and unblock gomod upgrades

Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
This commit is contained in:
Dom Del Nano 2024-03-05 21:35:34 -08:00
parent 81c1ea03ee
commit 88e56ca729
5 changed files with 5 additions and 4 deletions

View File

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

View File

@ -25,7 +25,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.17 go-version: "1.20"
- name: Describe plugin - name: Describe plugin
id: plugin_describe id: plugin_describe
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')" 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 ### Dependencies
* Packer >= v1.7.1 (https://packer.io) * Packer >= v1.7.1 (https://packer.io)
* XenServer / Citrix Hypervisor > 7.6 * XenServer / Citrix Hypervisor > 7.6
* Golang 1.17 * Golang 1.20
## Compile the plugin ## Compile the plugin

2
go.mod
View File

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