Skip to content

Commit

Permalink
bench: Use agave-install if Solana is v2
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto committed Nov 23, 2024
1 parent 6d6b24a commit 02b053e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/bench/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,12 @@ export class VersionManager {
const activeVersion = this.#getSolanaVersion();
if (activeVersion === version) return;

spawn("solana-install", ["init", version], {
// `solana-install` is renamed to `agave-install` in Solana v2
// https://github.com/anza-xyz/agave/wiki/Agave-Transition
const cmdName = activeVersion.startsWith("2")
? "agave-install"
: "solana-install";
spawn(cmdName, ["init", version], {
logOutput: true,
throwOnError: { msg: `Failed to set Solana version to ${version}` },
});
Expand Down

0 comments on commit 02b053e

Please sign in to comment.