From 51883410ebb4891a26f0857906fe2f589e64d506 Mon Sep 17 00:00:00 2001 From: Artur Reznikov Date: Tue, 2 Jul 2024 11:18:10 -0700 Subject: [PATCH] avoid github api if custom version is set --- cmd/nodecmd/create.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/nodecmd/create.go b/cmd/nodecmd/create.go index 8abeac736..b7c3ebfb2 100644 --- a/cmd/nodecmd/create.go +++ b/cmd/nodecmd/create.go @@ -1001,6 +1001,10 @@ func provideStakingCertAndKey(host *models.Host) error { // or if they want to use the newest Avalanche Go Version that is still compatible with Subnet EVM // version of their choice func getAvalancheGoVersion() (string, error) { + // skip this logic if custom-avalanchego-version flag is set + if useCustomAvalanchegoVersion != "" { + return useCustomAvalanchegoVersion, nil + } latestReleaseVersion, err := app.Downloader.GetLatestReleaseVersion(binutils.GetGithubLatestReleaseURL( constants.AvaLabsOrg, constants.AvalancheGoRepoName,