Expand description
Dependency installation shared by Forge commands.
Re-exportsยง
use crate::lockfile::DepIdentifier;๐use crate::lockfile::DepMap;๐use crate::lockfile::FOUNDRY_LOCK;๐use crate::lockfile::Lockfile;๐use crate::opts::Dependency;๐use crate::opts::DependencyRefKind;๐use crate::utils::Git;๐use crate::utils::LoadConfig;๐use clap::Parser;๐use clap::ValueHint;๐use eyre::Context;๐use eyre::Result;๐use foundry_common::fs;๐use foundry_config::Config;๐use foundry_config::impl_figment_convert_basic;๐use regex::Regex;๐use semver::Version;๐use std::io::ErrorKind;๐use std::io::IsTerminal;๐use std::path::Path;๐use std::path::PathBuf;๐use std::str;๐use std::sync::LazyLock;๐use yansi::Paint;๐use soldeer_commands::Command;๐soldeeruse soldeer_commands::Verbosity;๐soldeeruse soldeer_commands::commands::install::Install;๐soldeer
Structsยง
- Dependency
Install Opts - Install
Args - CLI arguments for
forge install. - Installer ๐
- NewFolder
Guard ๐ - Removes a newly created dependency directory if its installation fails.
- NewSubmodule
Guard ๐
Staticsยง
Functionsยง
- install_
missing_ dependencies - Installs missing dependencies and reloads config only to discover new remappings.
- install_
soldeer_ ๐deps_ if_ needed soldeer - Checks if a dependency has soldeer.lock and installs soldeer dependencies if needed.
- match_
yn ๐ - Matches on the result of a prompt for yes/no.
- restore_
file ๐