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:

committed by
Brad Fitzpatrick

parent
87f2e4c12c
commit
39f7a61e9c
@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user