mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix: allow file:../core in version check
This commit is contained in:
@@ -30,10 +30,11 @@ if (root.version !== cli.version || root.version !== core.version) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 2. Check that the cli's dependency on core matches the core version.
|
// 2. Check that the cli's dependency on core matches the core version.
|
||||||
const coreDepVersion = cli.dependencies['@google/gemini-core'];
|
const coreDepVersion = cli.dependencies['@google/gemini-cli-core'];
|
||||||
if (coreDepVersion !== `^${core.version}`) {
|
const expectedCoreVersion = `^${core.version}`;
|
||||||
|
if (coreDepVersion !== expectedCoreVersion && coreDepVersion !== 'file:../core') {
|
||||||
errors.push(
|
errors.push(
|
||||||
`CLI dependency on core is wrong: expected ^${core.version}, got ${coreDepVersion}`,
|
`CLI dependency on core is wrong: expected ${expectedCoreVersion} or "file:../core", got ${coreDepVersion}`,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user