From d8b7e85de5e02b59aad77a4d54e85e1f2e8ec35e Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 6 Jan 2024 15:33:04 +0100 Subject: [PATCH 1/4] Adding some debugging output --- main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.js b/main.js index 148781a..068577f 100644 --- a/main.js +++ b/main.js @@ -95,6 +95,10 @@ async function main() { console.log(details) core.endGroup() + core.startGroup("Check sourceDirectory") + await exec.exec("ls", ["-la", sourceDirectory]) + core.endGroup() + if (cpuArchitecture != "amd64") { core.startGroup("Install QEMU") // Need newer QEMU to avoid errors @@ -183,6 +187,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 fb3b89c3756bf5e58a6763894b30f1a41dbf034b Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 6 Jan 2024 15:33:43 +0100 Subject: [PATCH 2/4] 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 068577f..e4221b4 100644 --- a/main.js +++ b/main.js @@ -201,7 +201,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() } From 305eb467978c438ae78091a56fd18f2b9f625a2e Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 6 Jan 2024 15:33:04 +0100 Subject: [PATCH 3/4] Adding some debugging output --- main.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/main.js b/main.js index 148781a..2e4be68 100644 --- a/main.js +++ b/main.js @@ -95,6 +95,10 @@ async function main() { console.log(details) core.endGroup() + core.startGroup("Check sourceDirectory") + await exec.exec("ls", ["-la", sourceDirectory]) + core.endGroup() + if (cpuArchitecture != "amd64") { core.startGroup("Install QEMU") // Need newer QEMU to avoid errors @@ -127,6 +131,13 @@ async function main() { ]) core.endGroup() + core.startGroup("Show container ispect") + await exec.exec("docker", [ + "inspect", + container + ]) + core.endGroup() + core.startGroup("Prepare environment") await exec.exec("docker", [ "exec", @@ -183,6 +194,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 8345de0de69440ccc5331eae339292658ad19c22 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 6 Jan 2024 15:33:43 +0100 Subject: [PATCH 4/4] 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 2e4be68..c799dd3 100644 --- a/main.js +++ b/main.js @@ -208,7 +208,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() }