Skip to content

Commit b95f903

Browse files
authored
fix: add working directory for custom install command (alibaba#505)
1 parent a27d00d commit b95f903

File tree

1 file changed

+1
-1
lines changed
  • rock/sdk/sandbox/runtime_env

1 file changed

+1
-1
lines changed

rock/sdk/sandbox/runtime_env/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async def _post_init(self) -> None:
231231
async def _do_custom_install(self) -> None:
232232
"""Execute custom install command after _post_init."""
233233
await self.run(
234-
self._custom_install_cmd,
234+
f"cd {shlex.quote(self._workdir)} && {self._custom_install_cmd}",
235235
wait_timeout=self._install_timeout,
236236
error_msg="custom_install_cmd failed",
237237
)

0 commit comments

Comments
 (0)