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:
aviau 2021-01-14 12:33:05 -05:00
parent 7730b62281
commit 678a9f910b
No known key found for this signature in database
GPG Key ID: 8F2B113C6535C5A7
1 changed files with 2 additions and 0 deletions

2
deps/deps.go vendored
View File

@ -1,3 +1,5 @@
// +build deps
// 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
// if they are not referenced in any packages.