Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local resolver should support multiple prefixes #101

Open
jayconrod opened this issue Jan 25, 2018 · 0 comments
Open

Local resolver should support multiple prefixes #101

jayconrod opened this issue Jan 25, 2018 · 0 comments

Comments

@jayconrod
Copy link
Contributor

jayconrod commented Jan 25, 2018

Gazelle allows prefixes to be set in multiple directories using the # gazelle:prefix directive. This is used to determine importpath attributes for library rules. The resolver should use these when it can't resolve labels using the index.

For example, say we have the directive # gazelle:prefix example.com/foo set in the build file src/foo/BUILD.bazel. When we attempt to resolve the import path example.com/foo/bar, the local resolver should return //src/foo/bar:go_default_library. Currently, this would go to the external resolver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant