prep for release tagging

This commit is contained in:
mkorwel
2025-07-01 15:55:33 -05:00
parent cf13466b9a
commit bf39c6e104
4 changed files with 35 additions and 52 deletions

View File

@@ -123,7 +123,8 @@ function buildImage(imageName, dockerfile) {
readFileSync(join(process.cwd(), 'package.json'), 'utf-8'),
).version;
const imageTag = process.env.GEMINI_SANDBOX_IMAGE_TAG || imageName.split(':')[1];
const imageTag =
process.env.GEMINI_SANDBOX_IMAGE_TAG || imageName.split(':')[1];
const finalImageName = `${imageName.split(':')[0]}:${imageTag}`;
execSync(

View File

@@ -32,14 +32,15 @@ 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-cli-core'];
const expectedCoreVersion = `^${core.version}`;
if (coreDepVersion !== expectedCoreVersion && coreDepVersion !== 'file:../core') {
if (
coreDepVersion !== expectedCoreVersion &&
coreDepVersion !== 'file:../core'
) {
errors.push(
`CLI dependency on core is wrong: expected ${expectedCoreVersion} or "file:../core", got ${coreDepVersion}`,
);
} else {
console.log(
`- CLI dependency on core (${coreDepVersion}) is correct.`,
);
console.log(`- CLI dependency on core (${coreDepVersion}) is correct.`);
}
// 3. Check that the sandbox image tag matches the root version.