You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tools/build_rules/prelude_bazel cannot load Skylark rules from the same workspace #1612
I could put my Skylark rules in a separate repo and give it a name, say, foo_workspace, then I can load it for every BUILD file by add the following line in tools/build_rules/prelude_bazel:
load("@foo_workspace//:bar.bzl", "baz")
However, if I move bar.bzl to the main code workspace, I cannot load it from prelude_bazel:
load("//:bar.bzl", "baz")
does not work. Bazel will complain
"Unable to load package for '@bazel_tools//bar.bzl': BUILD file not found on package path."
Activity
ahyangyi commentedon Aug 8, 2016
Oops, "@//:bar.bzl" works. Kind of unexpected, but it's working regardless. I guess I can close this issue then.