-
I wrote an sh_binary in a BUILD.plz file, and when I ran the "./pleasew build " command, it threw an error: "error: name 'sh_library' is not defined". How can I solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It appears that you have not added the shell plugin to your project, so the TLDR: run
|
Beta Was this translation helpful? Give feedback.
It appears that you have not added the shell plugin to your project, so the
sh_binary
and related rules are not defined.TLDR: run
plz init plugin shell
This should set everything up for you. Alternatively, you can do what it does manually, if you want more control.
Essentially, you need to create a
BUILD
file, that defines each plugin you wish to use in your project. The init command creates aplugins/BUILD
file, although you can change this as long as you edit your.plzconfig
to suit.In your case, to this file, you would add
See https://github.com/please-build for the list of op…