Skip to main content

plugin_call_cwd

Function plugin_call_cwd 

Source
fn plugin_call_cwd(
    scope: &str,
    project_path: Option<&str>,
    home: &str,
) -> String
Expand description

The working directory one plugin CLI call runs in.

project/local scopes resolve against a declared project - the entry’s own project_path for an update, the named project for an install - so the call always runs somewhere forge.toml names. Every other scope (the CLI’s user, and anything a future CLI adds) runs in the home directory. Never the process cwd: what a plugin call does must not vary with where forge was launched (hard rule 14).