From 88e56ca729eba99824ed7f2674a1c45a93e06192 Mon Sep 17 00:00:00 2001 From: Dom Del Nano Date: Tue, 5 Mar 2024 21:35:34 -0800 Subject: [PATCH] Upgrade go to 1.20 to reflect latest packer-plugins-sdk go version and unblock gomod upgrades Signed-off-by: Dom Del Nano --- .github/workflows/go-test.yml | 2 +- .github/workflows/release.yml | 2 +- .go-version | 1 + README.md | 2 +- go.mod | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .go-version diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index ed28862..8747431 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dfde89..4629838 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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')" diff --git a/.go-version b/.go-version new file mode 100644 index 0000000..4bb1a22 --- /dev/null +++ b/.go-version @@ -0,0 +1 @@ +1.20.11 diff --git a/README.md b/README.md index 1c9d675..e54de00 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/go.mod b/go.mod index 99585a8..f02ae5a 100644 --- a/go.mod +++ b/go.mod @@ -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