From 648f45130eaaecd0d7c441413474d7aa14581598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 15 May 2023 22:32:58 +0200 Subject: [PATCH 1/4] GitHub CI: upgrade Go to 1.20 Upgrade actions/setup-go to latest. Upgrade Go to 1.20. --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3921c59e..82fd86f0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,9 +14,9 @@ jobs: steps: - name: Set up Go 1.14 - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: - go-version: 1.14 + go-version: 1.20 id: go - name: Check out code into the Go module directory From 5bd3cc5473f696bcdb1cd122855a7e7a6dc897ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 15 May 2023 22:39:58 +0200 Subject: [PATCH 2/4] GitHub CI: upgrade 'checkout' action to v3 --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 82fd86f0..b777b715 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,15 +13,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.14 + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: Set up Go 1.20 uses: actions/setup-go@v4 with: go-version: 1.20 id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Get dependencies run: | go get -v -t -d ./... From c2499bf25ef597c66dc332663ca70f963420f3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 15 May 2023 22:42:12 +0200 Subject: [PATCH 3/4] GitHub CI: drop use of 'dep' and fully use Go modules --- .github/workflows/go.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b777b715..4e6d5c2e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,12 +23,7 @@ jobs: id: go - name: Get dependencies - run: | - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi + run: go mod download - name: Build run: go build -v . From 6d9d35090304c4a311a93de6968777e9c00d67a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 16 May 2023 16:56:37 +0200 Subject: [PATCH 4/4] GitHub CI: fix Go version Fix Go version in YAML: use quotes to mark <1.20> as string instead of being interpreted as float as <1.2>. --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4e6d5c2e..73a31a5c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go 1.20 uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: '1.20' id: go - name: Get dependencies