forked from microsoft/go-winio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Isolate tools dependencies in tools package
Use `./tools` to prevent callers of `go-winio` from needing to add tools to their dependencies. Similar to microsoft/hcsshim#1840 Signed-off-by: Hamza El-Saawy <[email protected]>
- Loading branch information
Showing
4 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build tools | ||
|
||
// This package contains imports to various tools used (eg, via `//go:generate`) within this repo. | ||
// | ||
// Calls to `go run <cmd/import/path>` (or `//go:generate go run <cmd/import/path>`) for go executables | ||
// included here will use the version specified in `go.mod` and build the executable from vendored code. | ||
// | ||
// Based on golang [guidance]. | ||
// | ||
// [guidance]: https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module | ||
package tools | ||
|
||
import _ "golang.org/x/tools/cmd/stringer" |