mod dep_versions¶
- module dep_versions¶
Versions of a dependency that exist in a local easyconfigs tree.
Review fixes often need a dependency version for a given toolchain generation ((‘Cython’, ‘<which?>’) on GCCcore-13.3.0). Guessing gives versions that do not exist. This scans
.ebfiles named <name>-*.eb under the given roots and reports each one’sversion, toolchain, andversionsuffix, so the caller can pick a version that exists.Functions
- fn dep_versions(roots: &[PathBuf], name: &str, toolchain: Option<&str>) -> Result<DepVersions, String>¶
List the easyconfigs of
nameunderroots(directories, or.ebfiles whose directory is searched). Errors when the roots hold no.ebfile at all, because then nothing can be looked up.
- fn normalize_toolchain(spec: &str) -> String¶
Normalize a toolchain spec:
GCCcore-13.3.0,GCCcore/13.3.0,('GCCcore', '13.3.0')-styleGCCcore 13.3.0, orsystem.
Structs and Unions
- struct DepVersion¶
One easyconfig of the requested software.
- version: String¶
versionfrom the easyconfig.
- toolchain: String¶
NAME-VERSION, orsystemfortoolchain = SYSTEM.
- versionsuffix: String¶
versionsuffixas written (may contain templates), empty when unset.
- path: String¶
Path of the easyconfig.
- struct DepVersions¶
Result of
dep_versions.- name: String¶
Software name searched for (case-sensitive, as in
('Cython', ...)).
- toolchain: Option<String>¶
Toolchain filter, when one was given.
- matching: Vec<DepVersion>¶
Easyconfigs for exactly that toolchain (or all, without a filter).
- subtoolchain_matching: Vec<DepVersion>¶
Easyconfigs on a subtoolchain of the requested toolchain (for
foss-2024a:GCCcore-13.3.0,GCC-13.3.0,gompi-2024a, …). A dependency of a foss recipe may use any of these; robot finds it.
- other_toolchains: Vec<DepVersion>¶
Easyconfigs of the same software for other toolchains.
- easyconfigs_scanned: usize¶
Number of
.ebfiles seen under the roots.
- roots: Vec<String>¶
Roots that were searched.
- message: String¶
One-line guidance for the caller.