Skip to content

cli: check solana-cli version#645

Merged
nik-suri merged 3 commits intomainfrom
cli/solana-cli-version-check
Jul 8, 2025
Merged

cli: check solana-cli version#645
nik-suri merged 3 commits intomainfrom
cli/solana-cli-version-check

Conversation

@kcsongor
Copy link
Copy Markdown
Contributor

This vastly improves the error message when the wrong solana-cli version is installed. Before this change, it just prints a cryptic file not found error.

Also changed the checkAnchorVersion function to read the expected version from the Anchor.toml of the relevant worktree. This makes the function robust in the future in case future ntt versions are upgraded to newer anchor versions.

@kcsongor kcsongor requested review from evgeniko and nvsriram June 26, 2025 18:26
Comment thread cli/src/index.ts Outdated
nvsriram
nvsriram previously approved these changes Jun 26, 2025
Copy link
Copy Markdown
Contributor

@nvsriram nvsriram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

evgeniko
evgeniko previously approved these changes Jun 26, 2025
@nik-suri nik-suri force-pushed the cli/solana-cli-version-check branch from b4c93bb to 46499ec Compare July 7, 2025 15:33
@kcsongor kcsongor dismissed stale reviews from evgeniko and nvsriram via c14897f July 7, 2025 18:27
@kcsongor kcsongor requested review from evgeniko and nvsriram July 7, 2025 19:18
Copy link
Copy Markdown
Contributor

@evgeniko evgeniko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

kcsongor and others added 3 commits July 7, 2025 18:47
This vastly improves the error message when the wrong solana-cli version
is installed. Before this change, it just prints a cryptic file not
found error.

Also changed the `checkAnchorVersion` function to read the expected
version from the Anchor.toml of the relevant worktree. This makes the
function robust in the future in case future ntt versions are upgraded
to newer anchor versions.
Co-authored-by: Sriram Nurani Viswanathan <50625504+nvsriram@users.noreply.github.com>
detect the appropriate version picker and run it
@nvsriram nvsriram force-pushed the cli/solana-cli-version-check branch from c14897f to ea5471d Compare July 7, 2025 22:47
Copy link
Copy Markdown
Contributor

@nvsriram nvsriram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nik-suri nik-suri merged commit 2aaa82b into main Jul 8, 2025
9 checks passed
@nik-suri nik-suri deleted the cli/solana-cli-version-check branch July 8, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants