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

Build file from git_repository not found #1075

Closed
wolfgangmeyers opened this issue Mar 23, 2016 · 3 comments
Closed

Build file from git_repository not found #1075

wolfgangmeyers opened this issue Mar 23, 2016 · 3 comments

Comments

@wolfgangmeyers
Copy link

I've attached a zip file of a reproduction project with a readme that has the same content as below:

Build file not found

Currently (as of 2b8ae5b) there seems to be a problem with dependencies on projects that depend on external archives. Provided here is an example
project that can reproduce the problem.

Summary

  • Project A (this project) depends on project B (rules_closure) using a git_repository rule.
  • Project B depends on project C (closure_library) using a new_http_archive rule.
  • Project B has build file for project C (closure/library/closure_library.BUILD) in its source tree and points to it in the new_http_archive rule.
  • When project A builds, bazel sees the reference to the build file for project C
    in the workspace file of project B. It then looks for this build file in
    the source tree of project A, and does not find it. The build fails because
    the build file for project C cannot be found.

Run the following command to reproduce the issue:

bazel build //:main

missing_closure_library.zip

@wolfgangmeyers
Copy link
Author

This resulted from investigation of bazelbuild/rules_closure#9

@kchodorow
Copy link
Contributor

This is kind of a duplicate of #855. Rules should generally be updated to use build_file_content instead of build_file as a workaround.

@damienmg
Copy link
Contributor

I think we can replace build_file to use label now that the machinery is
there (we use it for repository_ctx.template)

On Wed, Mar 23, 2016 at 7:14 PM Kristina [email protected] wrote:

This is kind of a duplicate of #855
#855. Rules should generally
be updated to use build_file_content instead of build_file as a
workaround.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1075 (comment)

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

No branches or pull requests

3 participants