mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Report errors when repositories cannot be cloned during ecosystem checks (#9314)
Otherwise, the directory is just missing later and you need to dig through logs to understand why.
This commit is contained in:
parent
fca9dc5ce2
commit
c01bb0d485
1 changed files with 9 additions and 6 deletions
|
@ -294,14 +294,17 @@ class Repository(Serializable):
|
||||||
)
|
)
|
||||||
|
|
||||||
process = await create_subprocess_exec(
|
process = await create_subprocess_exec(
|
||||||
*command, env={"GIT_TERMINAL_PROMPT": "0"}
|
*command,
|
||||||
|
env={"GIT_TERMINAL_PROMPT": "0"},
|
||||||
|
stdout=PIPE,
|
||||||
|
stderr=PIPE,
|
||||||
)
|
)
|
||||||
|
|
||||||
status_code = await process.wait()
|
if await process.wait() != 0:
|
||||||
|
_, stderr = await process.communicate()
|
||||||
logger.debug(
|
raise ProjectSetupError(
|
||||||
f"Finished cloning {self.fullname} with status {status_code}",
|
f"Failed to clone {self.fullname}: {stderr.decode()}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Configure git user — needed for `self.commit` to work
|
# Configure git user — needed for `self.commit` to work
|
||||||
await (
|
await (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue