From 3537f8e1d174f2ce422c9024a9e0d6df87ad9207 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 12 Apr 2021 18:43:04 +0200 Subject: Filter out the /outputs/ directory The issue here is that we copy all build results (packages) in the container to /outputs and then butido uses that directory to fetch the outputs of the build. But, because how the docker API works, we get a TAR stream from docker that _contains_ the /outputs directory. But of course, we don't want that. Until now, that was no issue. But it has become one now that we start adopting butido for our real-world scenarios. This patch adds filtering out that /outputs portion of the pathes from the tar archive when writing all the things to disc. Signed-off-by: Matthias Beyer Tested-by: Matthias Beyer --- src/consts.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/consts.rs') diff --git a/src/consts.rs b/src/consts.rs index 8891f81..5c6dbc4 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -16,6 +16,7 @@ pub const INPUTS_DIR_PATH: &str = "/inputs"; /// The path to the directory inside the container where the outputs of a compile job must be /// located after the script was run pub const OUTPUTS_DIR_PATH: &str = "/outputs"; +pub const OUTPUTS_DIR_NAME: &str = "outputs"; /// The path where the script that is executed inside the container is copied to. pub const SCRIPT_PATH: &str = "/script"; -- cgit v1.2.3