-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read module dependencies from debug.BuildInfo instead of go.mod (#199)
runtime/debug.ReadBuildInfo is more reliable than manually parsing a `go.mod` file, specially without assistance from golang.org/x/mod/modfile. Another advantage is that it doesn't require `go.mod` and source code to be available. We also now include the current module (the module with package main) in the list of modules. runtime/debug.ReadBuildInfo requires go 1.12, which is already the minimum supported Go version. Thus bump the language version in go.mod. Drop support for reading dependencies from govendor's `vendor/vendor.json`. Fixes #184. Fixes #197. Co-authored-by: Rodolfo Carvalho <[email protected]>
- Loading branch information
1 parent
ed4cdde
commit 5747ddf
Showing
3 changed files
with
121 additions
and
123 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