Compare commits

...

2 Commits

Author SHA1 Message Date
celestial-vault a67a3c33b7 remove comment 2025-04-22 17:41:18 -07:00
celestial-vault f79ea81aac update to split by parts 2025-04-22 17:40:01 -07:00
2 changed files with 24 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
Update protoc script version check to check for versions LOWER than that specified
+19 -2
View File
@@ -22,8 +22,25 @@ async function main() {
console.warn(chalk.yellow("Warning: Could not determine protoc version. Continuing anyway..."))
} else {
const version = versionMatch[1]
const requiredVersion = "30.1"
if (version !== requiredVersion) {
const requiredVersion = "30.1.0" // Update to include patch version
// Split versions and convert to numbers, default patch to 0 if not present
const vParts = version.split(".").map(Number)
const rParts = requiredVersion.split(".").map(Number)
const vMajor = vParts[0]
const vMinor = vParts[1]
const vPatch = vParts[2] || 0 // Default to 0 if patch is missing
const rMajor = rParts[0]
const rMinor = rParts[1]
const rPatch = rParts[2] || 0
if (
vMajor < rMajor ||
(vMajor === rMajor && vMinor < rMinor) ||
(vMajor === rMajor && vMinor === rMinor && vPatch < rPatch)
) {
console.warn(
chalk.yellow(`Warning: protoc version ${version} found, but version ${requiredVersion} is required.`),
)