summaryrefslogtreecommitdiffstats
path: root/crates/runner/src/paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/runner/src/paths.rs')
-rw-r--r--crates/runner/src/paths.rs5
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)])
+}