Closed thehesiod closed 5 years ago
Ok I've filed an internal bug. Not sure how this slipped through the release process...
I've been trying to fix it, I figured out how to update it but for some reason it still cant find the definition
Try adding the following line to the 'deps' section of the 'closure_lib' build rule in /upvote/gae/modules/upvote_app/frontend/BUILD
:
"@io_bazel_rules_closure//closure/library/dom/safe",
ya I tried that but then got:
ERROR: /Users/amohr/dev/upvote/upvote/gae/modules/upvote_app/frontend/BUILD:20:1: no such package '@io_bazel_rules_closure//closure/library/dom/safe': BUILD file not found on package path and referenced by '//upvote/gae/modules/upvote_app/frontend:closure_lib'
ERROR: Analysis of target '//upvote/gae:monolith_binary.deploy' failed; build aborted: no such package '@io_bazel_rules_closure//closure/library/dom/safe': BUILD file not found on package path
This is how I upgraded closure:
http_archive(
name = "io_bazel_rules_closure",
sha256 = "b29a8bc2cb10513c864cb1084d6f38613ef14a143797cea0af0f91cd385f5e8c",
strip_prefix = "rules_closure-0.8.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.8.0.tar.gz",
"https://github.com/bazelbuild/rules_closure/archive/0.8.0.tar.gz",
],
)
And that fixed it?
nope, that just gave me a closure that had the goog.dom.safe "module"....I get that error above if I try adding the line you mention to frontend/BUILD
, which I also though would resolve the second issue. I'm at a loss. I'll try after reverting my closure change
It might need to be:
"@io_bazel_rules_closure//closure/library/dom:safe",
(note the colon)
indeed, that was the only fix required: https://github.com/farmersbusinessnetwork/upvote/commit/46e5ac1e84b7aa64c90d72c672aee00fd78b80e5 thanks!
guessing the closure lib version needs to be updated?