mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +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(
|
||||
*command, env={"GIT_TERMINAL_PROMPT": "0"}
|
||||
*command,
|
||||
env={"GIT_TERMINAL_PROMPT": "0"},
|
||||
stdout=PIPE,
|
||||
stderr=PIPE,
|
||||
)
|
||||
|
||||
status_code = await process.wait()
|
||||
|
||||
logger.debug(
|
||||
f"Finished cloning {self.fullname} with status {status_code}",
|
||||
)
|
||||
if await process.wait() != 0:
|
||||
_, stderr = await process.communicate()
|
||||
raise ProjectSetupError(
|
||||
f"Failed to clone {self.fullname}: {stderr.decode()}"
|
||||
)
|
||||
|
||||
# Configure git user — needed for `self.commit` to work
|
||||
await (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue