Skip to content

pleasew build error #3258

Answered by cemeceme
Jwinf asked this question in Q&A
Discussion options

You must be logged in to vote

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 a plugins/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

plugin_repo(
  name = "shell",
  revision = "v0.2.0",
  plugin = "shell-rules",
  owner = "please-build",
)

See https://github.com/please-build for the list of op…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisnovakovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3199 on September 18, 2024 12:48.