mirror of https://github.com/perkeep/perkeep.git
deps.go: add build flag
We never really want to build this, but it makes `go get ./...` complain because it imports programs (and not modules), so add a build flag. FYI this is known as the "tools.go" pattern, as discussed here: - https://github.com/golang/go/issues/25922
This commit is contained in:
parent
7730b62281
commit
678a9f910b
|
@ -1,3 +1,5 @@
|
||||||
|
// +build deps
|
||||||
|
|
||||||
// Package deps depends on go modules in order to work around the fact that
|
// Package deps depends on go modules in order to work around the fact that
|
||||||
// `go mod` subcommands will end up removing dependencies from the vendor directory
|
// `go mod` subcommands will end up removing dependencies from the vendor directory
|
||||||
// if they are not referenced in any packages.
|
// if they are not referenced in any packages.
|
||||||
|
|
Loading…
Reference in New Issue