-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the dummy dep on licenses dir stronger
Without an actual code-level dependency, `go mod vendor` will elide the licenses directory, which is where the actual DB files are stored. Without those, it's not very useful to vendor this lib.
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
// +build tools | ||
|
||
// Package dummy is a placeholder. This allows consumers of licenseclassifier | ||
// to use Go modules and vendoring and still find in the licenses.db file. | ||
package licenses | ||
|
||
// Placeholder, allows others to pull in the licenses.db file via go.mod. | ||
// Dummy is a pointless type which is used to satisfy Go's dependency-tracking | ||
// to include this directory. | ||
type Dummy struct{} |