Skip to content

Commit

Permalink
bench: Use agave-install if Solana is v2 (#3383)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Nov 24, 2024
1 parent 6e340a0 commit 4b12678
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 4b12678

Please sign in to comment.