-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
language/go: implement minimal module compatibility (#564)
* The Go extension now accepts flags -go_repository_mode and -go_repository_module_mode. * The Go extension will emit importpath_aliases attributes for libraries with importpath set if -go_repository_mode was set, Gazelle is in module mode, the prefix is actually a prefix of importpath, the prefix contains a semantic import version suffix, and the prefix was set in the root package. Such a library can be imported with more than one import path. * The minimum version of rules_go is now 0.19.0, since support for importpath_aliases is needed. * When initializing RemoteCache, which is used to resolve external import paths, if we have a known import path that contains a semantic import version suffix, but we don't have a known import path for the path without the suffix, we create an aliases. Also: * Avoided parsing WORKSPACE and related files multiple times when -repo_config is set. Fixes #477
- Loading branch information
Jay Conrod
authored
Jul 1, 2019
1 parent
fea53ea
commit 38bd65e
Showing
10 changed files
with
230 additions
and
48 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
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
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
Oops, something went wrong.