Skip to content

Commit 4b193ea

Browse files
tbitcsoz-agent
andcommitted
fix: use safe.directory wildcard so west loads Zephyr build extension
The previous commit used explicit paths (/work and /work/zephyr) but Zephyr lives at /work/external/zephyr in this workspace layout, so west could not load its build extension command. Revert to safe.directory '*' which trusts all directories inside the container (acceptable for an isolated build env). Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 4635956 commit 4b193ea

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

west_env/container.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ def _container_args(
103103
# missing, Zephyr west extension commands (build,
104104
# flash, etc.) will NOT load.
105105
# -------------------------------------------------
106-
git_prep = (
107-
"git config --global --add safe.directory /work && "
108-
"git config --global --add safe.directory /work/zephyr"
109-
)
106+
git_prep = "git config --global safe.directory '*'"
110107
full_cmd = shlex.join(command)
111108

112109
args.append(cfg.image)

0 commit comments

Comments
 (0)