fix version release for Dockerfile build (#1080)

This commit is contained in:
Zach Sais
2025-06-16 01:13:39 -05:00
committed by GitHub
parent 40fbb61a1b
commit cc7459e403
4 changed files with 19 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ import {
import { Settings } from './settings.js';
import { getEffectiveModel } from '../utils/modelCheck.js';
import { Extension } from './extension.js';
import { getCliVersion } from '../utils/version.js';
import * as dotenv from 'dotenv';
import * as fs from 'node:fs';
import * as path from 'node:path';
@@ -122,7 +123,8 @@ async function parseArguments(): Promise<CliArgs> {
description: 'Enables checkpointing of file edits',
default: false,
})
.version(process.env.CLI_VERSION || '0.0.0') // This will enable the --version flag based on package.json
.version(getCliVersion()) // This will enable the --version flag based on package.json
.alias('v', 'version')
.help()
.alias('h', 'help')
.strict().argv;