This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a flag to specify an alternate module root. (#51)
Although it is common practice, not all Go repositories have the go.mod file at the repo root. Add a --moduleRoot flag that allows the caller to specify a path relative to the repository root, that should be used as the module root for the purpose of indexing. To handle vendored dependencies, we now use go list -mod=readonly. To preserve the existing assumption that dependencies are fetched, do an explicit go mod download before listing the module.
- Loading branch information
M. J. Fromberger
authored
Mar 30, 2020
1 parent
ad3507c
commit b5af0ba
Showing
2 changed files
with
28 additions
and
4 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