Skip to content

Commit cfb0393

Browse files
CopilotApollon77
andcommitted
Add warning for cases where commit hash cannot be determined
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
1 parent 2de84c8 commit cfb0393

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/cli/src/lib/setup/setupInstall.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,11 @@ export class Install {
17991799
`Warning: Could not verify adapter compatibility from GitHub. Installation will proceed but may fail if the adapter does not support GitHub installation.`,
18001800
);
18011801
}
1802+
} else if (githubUser && githubRepo) {
1803+
// We have GitHub info but no commit hash, cannot verify nogit flag
1804+
console.warn(
1805+
`Warning: Could not determine commit hash from GitHub. Installation will proceed but may fail if the adapter does not support GitHub installation.`,
1806+
);
18021807
}
18031808
}
18041809

@@ -1826,6 +1831,11 @@ export class Install {
18261831
`Warning: Could not verify adapter compatibility from GitHub. Installation will proceed but may fail if the adapter does not support GitHub installation.`,
18271832
);
18281833
}
1834+
} else if (githubUser && githubRepo) {
1835+
// We have GitHub info but no commit hash, cannot verify nogit flag
1836+
console.warn(
1837+
`Warning: Could not determine commit hash from GitHub. Installation will proceed but may fail if the adapter does not support GitHub installation.`,
1838+
);
18291839
}
18301840
}
18311841
}

0 commit comments

Comments
 (0)