]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
build-with-container: ensure npm dir is set up before configure
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 28 Aug 2025 23:39:06 +0000 (19:39 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 8 Oct 2025 23:28:12 +0000 (19:28 -0400)
When the npm cache path option is passed the npm cache dir is passed
to all container `run` commands, ensure the dir has been created
before the first container command (configure) is used.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 79166af192ea0b4b982b56ce521516d5a29e7a0d)

src/script/build-with-container.py

index cbfe1aea8b390adcb32ec69360769b84b2c9772a..ef41fb9573d400b27a98bad0cb990ed9b65d12fc 100755 (executable)
@@ -648,6 +648,7 @@ def get_container(ctx):
 def bc_configure(ctx):
     """Configure the build"""
     ctx.build.wants(Steps.CONTAINER, ctx)
+    ctx.build.wants(Steps.NPM_CACHE, ctx)
     cmd = _container_cmd(
         ctx,
         [