From 8eba5cf0510d085854bddd50ccb25f613afe7fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Leonan=20S=2E=20Carvalho?= Date: Wed, 18 Jan 2023 16:11:40 -0300 Subject: [PATCH] Remove deprecated coverage pkg Recently I found that a previous change not related to workflows is failing in my other PR https://github.com/gofrs/uuid/pull/111 It is happening because the package [golang.org/x/tools/cmd/cover](https://pkg.go.dev/golang.org/x/tools/cmd/cover) is no longer active and marked as deprecated, that's why the test is falling ``` Run go get golang.org/x/tools/cmd/cover go get golang.org/x/tools/cmd/cover shell: /usr/bin/bash -e {0} env: GO111MODULE: auto GOROOT: /opt/hostedtoolcache/go/1.19.4/x64 cannot find package "golang.org/x/tools/cmd/cover" in any of: /opt/hostedtoolcache/go/1.19.4/x64/src/golang.org/x/tools/cmd/cover (from $GOROOT) /home/runner/go/src/golang.org/x/tools/cmd/cover (from $GOPATH) Error: Process completed with exit code 1. ``` The tests are focused on 1.18 e 1.19 we will be fine --- .github/workflows/go.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0efae22..8adb8d9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,9 +23,6 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Get Coverage - run: go get golang.org/x/tools/cmd/cover - - name: Build run: go build -v ./...