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

go_repository: cannot read outside of the repository directory #555

Closed
jayconrod opened this issue Jun 19, 2019 · 4 comments
Closed

go_repository: cannot read outside of the repository directory #555

jayconrod opened this issue Jun 19, 2019 · 4 comments

Comments

@jayconrod
Copy link
Contributor

go_repository uses ctx.read to read the main WORKSPACE file in versions of Bazel that support it. This is not actually allowed.

Caused by #550
Related #529

@excavador
Copy link

Confirm. Can not switch to bazel 0.27.0 because of this problem

@excavador
Copy link

Same issue with 0.26.1
Last workable version: 0.25.3

@excavador
Copy link

Sorry for noise, it is not related to bazel version.
It's problem with new version of gazelle

jayconrod added a commit to jayconrod/bazel-gazelle that referenced this issue Jun 23, 2019
* go_repository now supports a build_config attribute. By default,
  this points to "@//:WORKSPACE", but it may reference another file
  that changes less frequently or None. This is used to set the
  -repo_config option when invoking Gazelle.
* A global default may be set via "go_repository_default_config" in
  gazelle_dependencies.
* go_repository now reads files with "cat" instead of ctx.read.

Fixes bazel-contrib#555
@jayconrod
Copy link
Contributor Author

Fixed by #559

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

2 participants