From 26ed6251043bedb8ab27c3cdcc318d5c5583a707 Mon Sep 17 00:00:00 2001 From: lixinyu Date: Tue, 16 Jul 2024 15:45:02 +0800 Subject: [PATCH] one-click: fix the run bug * fix the issue of one-click build compilation directory mount failure Signed-off-by: lixinyu --- src/oebuild/app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oebuild/app/main.py b/src/oebuild/app/main.py index 1bd9f82..c950a04 100644 --- a/src/oebuild/app/main.py +++ b/src/oebuild/app/main.py @@ -258,7 +258,8 @@ class QuickBuild(): f"{self.workdir}/src:{oebuild_const.CONTAINER_SRC}" ) if not compile_volumn_flag: - volumn_dir = os.path.join(oebuild_const.CONTAINER_BUILD, self.build_dir) + volumn_dir = os.path.join(oebuild_const.CONTAINER_BUILD, + os.path.basename(self.build_dir)) self.compile_param.docker_param.volumns.append( f"{os.path.abspath(self.build_dir)}:{volumn_dir}" ) -- Gitee