move tools.go to sub-package (#2300)
`godep` by default pulls in all dependencies regardless of build tags. If `tools.go` is in our main package, that can cause unnecessary dependencies to be pulled into others' repos that otherwise don't need them. Moving it to an unused sub-package appears to fix this problem.
This commit is contained in:
@ -18,12 +18,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This file exists to cause `go mod` and `go get` to believe these packages
|
// This package exists to cause `go mod` and `go get` to believe these tools
|
||||||
// are dependencies, even though they are not runtime dependencies. This means
|
// are dependencies, even though they are not runtime dependencies of any grpc
|
||||||
// they will appear in our `go.mod` file, but will not be a part of the build
|
// package. This means they will appear in our `go.mod` file, but will not be
|
||||||
// unless the "tools" build tag is specified.
|
// a part of the build.
|
||||||
|
|
||||||
package grpc
|
package tools
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/client9/misspell/cmd/misspell"
|
_ "github.com/client9/misspell/cmd/misspell"
|
Reference in New Issue
Block a user