From 0be35bacbedff255a84f725feff2adaa81eba7a0 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 6 Jan 2024 15:33:04 +0100 Subject: [PATCH 1/2] Adding some debugging output --- main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.js b/main.js index 148781a..67de4b0 100644 --- a/main.js +++ b/main.js @@ -183,6 +183,14 @@ async function main() { ]) core.endGroup() + core.startGroup("Check sourceDirectory") + await exec.exec("docker", [ + "exec", + container, + "ls", "-la", sourceDirectory + ]) + core.endGroup() + if (imageTag != "trusty") { core.startGroup("Install build dependencies") await exec.exec("docker", [ From e0cb53ab31406f41cbc7de69354f7da803c75c7f Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 6 Jan 2024 15:33:43 +0100 Subject: [PATCH 2/2] Change working dir and operate on . --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 67de4b0..760094e 100644 --- a/main.js +++ b/main.js @@ -197,7 +197,8 @@ async function main() { "exec", container, "bash", "-c", - `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'` +// `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'` + `cd '${sourceDirectory}' && apt-get build-dep -yq -t '${imageTag}' . || apt-get build-dep -yq .` ]) core.endGroup() }