*Feedback on 2.0.0rc1*: while working on a plugin ...
# plugins
j
Feedback on 2.0.0rc1: while working on a plugin I set
run_in_workspace=True
and
input_diget=merged_digest
. These are mutually exclusive according to https://www.pantsbuild.org/docs/rules-api-process#interactiveprocess. How ever the error I got when I ran it that way was
Copy code
"InteractiveProcessRequest should use the Workspace API to materialize any needed "
ValueError: InteractiveProcessRequest should use the Workspace API to materialize any needed files when it runs in the workspace
Searching for Workspace API lead me to the
rules-api-process
document, but I think the wording of the error could be more helpful.
Would it be accurate to say:
Copy code
InteractiveProcessRequest should not have `input_digest` set to a value and `run_in_workspace` set to `True`. The Workspace API should be used to materialize....
👍 1
Not sure what Workspace API or materialize means in this context so maybe it should stay or be changed.
h
Yeah, that’s a more accurate way of wording the error message. Thanks for the suggested edit to the docs!
Not sure what Workspace API
Workspace
is a special type that you can request in a
@goal_rule
to be able to write to the file system. See https://www.pantsbuild.org/docs/rules-api-file-system#workspacewrite_digest