mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-16 17:11:04 -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.
|
||||
const coreDepVersion = cli.dependencies['@google/gemini-core'];
|
||||
if (coreDepVersion !== `^${core.version}`) {
|
||||
const coreDepVersion = cli.dependencies['@google/gemini-cli-core'];
|
||||
const expectedCoreVersion = `^${core.version}`;
|
||||
if (coreDepVersion !== expectedCoreVersion && coreDepVersion !== 'file:../core') {
|
||||
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 {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user