I have two bazel repositories, and I'd like for one to depend on the other. One defines an esbuild macro. (I tried with an esbuild_bundle rule as well), The second imports the first as a local repository:
In the second WORKSPACE, I have:
local_repository(
name = "bridge-deal",
path = "/home/kyle/devel/bridge-deal"
)
If I execute bazelisk build "@bridge-deal//:bundle I get the following error:
I've attached a minimal reproduction. In minimal-repro-js, bazelisk build //:bundle works. in minimal-repro, bazelisk build @minimal-repro-js//:bundle fails with an error similar to the one I posted above.
minimal-repro.tar.gz
Hopefully this gives you a hint as to where the problem is.
I have two bazel repositories, and I'd like for one to depend on the other. One defines an
esbuild
macro. (I tried with anesbuild_bundle
rule as well), The second imports the first as a local repository:In the second
WORKSPACE
, I have:If I execute
bazelisk build "@bridge-deal//:bundle
I get the following error:I've attached a minimal reproduction. In
minimal-repro-js
,bazelisk build //:bundle
works. inminimal-repro
,bazelisk build @minimal-repro-js//:bundle fails
with an error similar to the one I posted above. minimal-repro.tar.gzHopefully this gives you a hint as to where the problem is.