Skip to main content

future_dirs

Function future_dirs 

Source
pub fn future_dirs(os: HostOs, env: &Env) -> Vec<PathBuf>
Expand description

The folders added even before they exist, so a tool installed there while the process runs is found without a restart: on Linux the per-user Google Cloud SDK earlier installs made, on Windows Vagrant’s folder under the system drive (where its installer puts it), on macOS /usr/local/bin and Homebrew’s: a Mac with Apple silicon has no /usr/local/bin until an installer makes it for its link (Vagrant’s, the AWS CLI’s), nor Homebrew’s folder until Homebrew is installed.