tstest/staticcheck: import the main package to fix "go mod tidy"

Importing the non-main package was missing some dependencies that
"go mod tidy" would then cleanup. Also added a non-ignore build tag to
avoid other tools getting upset about importing a main package.

Signed-off-by: Filippo Valsorda <hi@filippo.io>
This commit is contained in:
Filippo Valsorda
2021-02-20 16:21:11 +01:00
committed by Brad Fitzpatrick
parent 87f2e4c12c
commit 39f7a61e9c
2 changed files with 4 additions and 1 deletions

View File

@ -5,8 +5,10 @@
// This file exists just so go mod tidy won't remove
// staticcheck's module from our go.mod.
// +build tools
package tstest
import (
_ "honnef.co/go/tools/staticcheck"
_ "honnef.co/go/tools/cmd/staticcheck"
)