rules_closure icon indicating copy to clipboard operation
rules_closure copied to clipboard

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

Open lemito opened this issue 3 years ago • 6 comments

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

lemito avatar Feb 27 '23 14:02 lemito

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.

gkdn avatar Mar 01 '23 04:03 gkdn

No, I have not changed the closure library version

lemito avatar Mar 08 '23 11:03 lemito

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 ?

lemito avatar Apr 08 '23 15:04 lemito

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

gkdn avatar Apr 11 '23 02:04 gkdn

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 avatar Sep 07 '23 11:09 roman-kashitsyn

@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?

lemito avatar Sep 15 '23 20:09 lemito