bazelbuild / rules_closure

Closure rules for Bazel
https://developers.google.com/closure
Apache License 2.0
152 stars 114 forks source link

No such package '@com_google_javascript_closure_library//closure/goog/soy' #572

Open lemito opened 1 year ago

lemito commented 1 year ago

Hello, I met following error:

ERROR: /Users/jacob/projects/feedbacker/src/assets/test/BUILD:32:1: no such package 'closure/templates': BUILD file not found on package path and referenced by '//:hello_soy'. ERROR: Loading failed; build aborted.

ERROR: /home/lemito/cpp-starter-kit/cpp/sources/clo/BUILD:35:19: no such package '@com_google_javascript_closure_library//closure/goog/soy': BUILD file not found in directory 'closure/goog/soy' of external repository @com_google_javascript_closure_library. Add a BUILD file to a directory to mark it as a package. and referenced by '//sources/clo:greeter_lib' ERROR: Analysis of target '//sources/clo:greeter_lib' failed; build aborted: Analysis failed

My files: https://github.com/lemito/my-monorepo

gkdn commented 1 year ago

Same examples works in this repository so seems related to your repository setup. You are using a different com_google_javascript_closure_library version, it might be related to that.

lemito commented 1 year ago

No, I have not changed the closure library version

lemito commented 1 year ago

Hello again :)

And how do I know which version of com_google_javascript_closure_library I have and which one I need to use for rules_closure to work properly ?

gkdn commented 1 year ago

If you don't override it, you should be getting v20220301 at the moment.

roman-kashitsyn commented 12 months ago

The problem might be that the 0.12 release uses an older version of the closure library, and there hasn't been a release for two years. It would be helpful to document how to use the latest version of rules_closure. Or cut a release :)

lemito commented 11 months ago

@roman-kashitsyn Yes, it would be nice to either update the documentation or the rules_closure itself . Or will it itself no longer get updates since google itself stopped using it and moved to frameworks like angular?