No such package '@com_google_javascript_closure_library//closure/goog/soy'
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
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.
No, I have not changed the closure library version
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 ?
If you don't override it, you should be getting v20220301 at the moment.
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 :)
@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?