diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-30 10:20:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-11-01 19:01:09 +0100 |
commit | fddeb158b550a938358ee8251741514b362c68b6 (patch) | |
tree | c4dfe6f1500dd3ad159c3f45b7e975e5d5b03dd4 /crates/runner/src/paths.rs | |
parent | 7a0bf8027b93e7e3f4e6887c0d116f471629cacd (diff) | |
download | rebel-fddeb158b550a938358ee8251741514b362c68b6.tar rebel-fddeb158b550a938358ee8251741514b362c68b6.zip |
runner: allow passing a map of pins with a task submission
Pins allow to use fixed versions of dependencies. They are stored
separately from regular dependency archives.
Diffstat (limited to 'crates/runner/src/paths.rs')
-rw-r--r-- | crates/runner/src/paths.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/runner/src/paths.rs b/crates/runner/src/paths.rs index 2e174df..b46d1bb 100644 --- a/crates/runner/src/paths.rs +++ b/crates/runner/src/paths.rs @@ -43,6 +43,7 @@ use common::string_hash::*; pub const ROOTFS_ARCHIVE: &str = "build/rootfs.tar"; pub const DOWNLOADS_DIR: &str = "build/downloads"; +pub const PIN_DIR: &str = "build/pinned"; pub const TMP_DIR: &str = "build/tmp"; pub const DEV_DIR: &str = "build/tmp/dev"; @@ -116,3 +117,7 @@ pub fn archive_tmp_filename(hash: &InputHash) -> String { pub fn archive_filename(hash: &ArchiveHash) -> String { join(&[OUTPUT_STATE_DIR, &format!("{}.tar", hash)]) } + +pub fn pinned_archive_filename(name: &str) -> String { + join(&[PIN_DIR, &format!("{}.tar", name)]) +} |