From 3e73943b393db917ee776720e3c39b9a8e8969cc Mon Sep 17 00:00:00 2001 From: jzsz-wsl <840863191@qq.com> Date: Thu, 14 Mar 2024 12:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=87=A0=E4=B8=AA?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superide/project/commands/init.py | 4 ++-- superide/run/cli.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superide/project/commands/init.py b/superide/project/commands/init.py index f5dc22c8..02ec817f 100644 --- a/superide/project/commands/init.py +++ b/superide/project/commands/init.py @@ -81,7 +81,7 @@ def project_init_cmd( config = ProjectConfig.get_instance(os.path.join(project_dir, __configfile__)) - # resolve project dependencies + # 检查拉取开发环境容器镜像 if not no_install_dependencies and (environment): for env in config.envs(): env_image = config.get(f"env:{env}", "env_image") @@ -125,7 +125,7 @@ def init_cvs_ignore(): if os.path.isfile(conf_path): return with open(conf_path, mode="w", encoding="utf8") as fp: - fp.write(".pio\n") + fp.write(".side\n") def update_project_env(environment, extra_project_options=None): if not extra_project_options: diff --git a/superide/run/cli.py b/superide/run/cli.py index 4acb93f4..178a3bc0 100644 --- a/superide/run/cli.py +++ b/superide/run/cli.py @@ -183,12 +183,12 @@ def process_env( targets = targets or config.get(f"env:{name}", "targets", []) only_monitor = targets == ["monitor"] result = {"env": name, "duration": time(), "succeeded": True} - dockername = config.get(f"env:{name}", "env_image") + image_name = config.get(f"env:{name}", "env_image") if not only_monitor: result["succeeded"] = EnvironmentProcessor( ctx, - dockername, + image_name, config, [t for t in targets if t != "monitor"], upload_port, -- Gitee