Skip to content

Commit

Permalink
avoid github api if custom version is set
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez committed Jul 2, 2024
1 parent b0668aa commit 5188341
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/nodecmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5188341

Please sign in to comment.