From 7a21297eb397b314ff9bc761ae1d4c95fd1b1c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Mon, 4 Apr 2022 11:09:20 +0200 Subject: [PATCH] chore: add tools.go for build tools dependencies --- .github/workflows/ci.yml | 10 ---------- tools/tools.go | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 tools/tools.go diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95b1e384c9..3acecfca9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,16 +32,6 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Get dependencies - if: ${{ matrix.go-version != '1.x' }} - run: | - go get gotest.tools/gotestsum - - - name: Get dependencies for 1.18 - if: ${{ matrix.go-version == '1.x' }} - run: | - go install gotest.tools/gotestsum - - name: modVerify run: go mod verify diff --git a/tools/tools.go b/tools/tools.go new file mode 100644 index 0000000000..724d23e17f --- /dev/null +++ b/tools/tools.go @@ -0,0 +1,11 @@ +//go:build tools +// +build tools + +// This package contains the tool dependencies of the project. + +package tools + +import ( + // Register gotestsum for pinning version + _ "gotest.tools/gotestsum" +)