@runuai/host 0.9.84 → 0.9.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -201,6 +201,17 @@ async function cloneProject(
|
|
|
201
201
|
CLONE_TIMEOUT_MS,
|
|
202
202
|
);
|
|
203
203
|
if (clone.exitCode !== 0) {
|
|
204
|
+
// The commonest failure by far is an ANONYMOUS clone of a private GitHub
|
|
205
|
+
// repo because this host has no GitHub credential for the task owner —
|
|
206
|
+
// git's own message ("could not read Username … terminal prompts
|
|
207
|
+
// disabled") explains none of that. Say the actionable thing.
|
|
208
|
+
if (token === null && isGithubRepoUrl(project.repoUrl)) {
|
|
209
|
+
return (
|
|
210
|
+
`could not clone ${project.repoUrl} for ${project.slug}: GitHub is ` +
|
|
211
|
+
"not connected on this host. Connect GitHub on the host's page " +
|
|
212
|
+
"(Connections → GitHub), then Resume."
|
|
213
|
+
);
|
|
214
|
+
}
|
|
204
215
|
return `could not clone ${project.repoUrl} for ${project.slug}: ${clone.stderr || "clone failed"}`;
|
|
205
216
|
}
|
|
206
217
|
|