'local_repository' undefined?

678 views
Skip to first unread message

Filip Miletic

unread,
Nov 2, 2015, 3:15:32 AM11/2/15
to bazel-discuss
Hi, folks!

Am I doing something wrong here?  From reading http://bazel.io/docs/be/workspace.html I understood that I could use e.g. the rule local_repository in my WORKSPACE file.

But, if I add local_repository rule to WORKSPACE file, bazel complains that name 'local_repository' is not defined.  I tried (just for kicks), 'new_local_repository' and got the same error. It seems as if my Bazel doesn't know about these two targets.  

Is there an include I'm missing?

F

Alex Humesky

unread,
Nov 4, 2015, 11:47:11 PM11/4/15
to Filip Miletic, bazel-discuss
Hi Filip,
The local_repository rule seems to be working for me. Can you share your workspace and build files, or provide steps to reproduce the problem?

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2ef9551a-dc53-4ea7-b18b-9539b883c9d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Filip Miletic (Филип Милетић)

unread,
Nov 5, 2015, 2:22:57 AM11/5/15
to Alex Humesky, bazel-discuss
Well I be the monkey's uncle!
Trying it now, and it works just fine.
F

Alex Humesky

unread,
Nov 5, 2015, 11:52:12 AM11/5/15
to Filip Miletic (Филип Милетић), bazel-discuss
Great, glad it's working for you!

Filip Miletic (Филип Милетић)

unread,
Nov 5, 2015, 12:42:12 PM11/5/15
to Alex Humesky, bazel-discuss
On Thu, Nov 5, 2015 at 8:52 AM Alex Humesky <ahum...@google.com> wrote:
Great, glad it's working for you!

I'm glad too, but also confused.  If I find time to do so, I'll dig a bit to check why I was seeing this.  I'll report back if I find anything conclusive.

The only lead I have so far is that I switched from release-0.1.2 to master when I first saw the message.  The confusing bit was that I saw the message post-switch too, until I gave up for the night and wrote to bazel-discuss.  Maybe this had to do with the bazel daemon that was still running, but I suspect that bazel should know when to restart the daemon, so again, confused.

F

Alex Humesky

unread,
Nov 5, 2015, 5:23:29 PM11/5/15
to Filip Miletic (Филип Милетић), bazel-discuss
On Thu, Nov 5, 2015 at 9:42 AM Filip Miletic (Филип Милетић) <fil...@gmail.com> wrote:
On Thu, Nov 5, 2015 at 8:52 AM Alex Humesky <ahum...@google.com> wrote:
Great, glad it's working for you!

I'm glad too, but also confused.  If I find time to do so, I'll dig a bit to check why I was seeing this.  I'll report back if I find anything conclusive.

Thanks, let us know.
 

The only lead I have so far is that I switched from release-0.1.2 to master when I first saw the message.  The confusing bit was that I saw the message post-switch too, until I gave up for the night and wrote to bazel-discuss.  Maybe this had to do with the bazel daemon that was still running, but I suspect that bazel should know when to restart the daemon, so again, confused.

Correct, the bazel server should restart if the version changes or if startup flags change.
 

F

Reply all
Reply to author
Forward
0 new messages