Skip to main content

Module install

Module install 

Source
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; ๐Ÿ”’ soldeer
use soldeer_commands::Verbosity; ๐Ÿ”’ soldeer
use soldeer_commands::commands::install::Install; ๐Ÿ”’ soldeer

Structsยง

DependencyInstallOpts
InstallArgs
CLI arguments for forge install.
Installer ๐Ÿ”’
NewFolderGuard ๐Ÿ”’
Removes a newly created dependency directory if its installation fails.
NewSubmoduleGuard ๐Ÿ”’

Staticsยง

DEPENDENCY_VERSION_TAG_REGEX ๐Ÿ”’

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 ๐Ÿ”’