From f829c2c7c80ea02a99bef1e17bae16ba07ef82b4 Mon Sep 17 00:00:00 2001 From: Gabriel Hicks <60371583+gabrielhicks@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:23:59 -0600 Subject: [PATCH] feat(fix): change 2.0 version check to versions starting with 2. --- packages/solv/src/config/getSolanaCLI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/solv/src/config/getSolanaCLI.ts b/packages/solv/src/config/getSolanaCLI.ts index 48031cbb..daab3e4a 100644 --- a/packages/solv/src/config/getSolanaCLI.ts +++ b/packages/solv/src/config/getSolanaCLI.ts @@ -8,8 +8,8 @@ export type SolanaCLI = typeof SOLANA_CLI | typeof AGAVE_CLI const getSolanaCLI = (): SolanaCLI => { try { const solanaVersion = getSolanaVersion() - const hasVersion20 = solanaVersion.includes('2.0') - if (hasVersion20) { + const hasVersion2 = solanaVersion.startsWith('2.') + if (hasVersion2) { return AGAVE_CLI } return SOLANA_CLI