Skip to main content

Module lockfile

Module lockfile 

Source
Expand description

foundry.lock handler type.

Re-exportsยง

use crate::utils::Git; ๐Ÿ”’
use crate::utils::SubmoduleCheckoutStatus; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use eyre::Context; ๐Ÿ”’
use eyre::OptionExt; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use foundry_common::fs::canonicalize_path; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::collections::BTreeMap; ๐Ÿ”’
use std::collections::hash_map::Entry; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’

Structsยง

Lockfile
A lockfile handler that keeps track of the dependencies and their current state.

Enumsยง

DepIdentifier
Identifies whether a dependency (submodule) is referenced by a branch, tag or rev (commit hash).
LockfileMismatch
A difference between foundry.lock and an installed dependency submodule.

Constantsยง

FOUNDRY_LOCK

Functionsยง

relative_path ๐Ÿ”’

Type Aliasesยง

DepMap
A type alias for a HashMap of dependencies keyed by relative path to the submodule dir.