-
Notifications
You must be signed in to change notification settings - Fork 93
control default latest version for avago and subnetevm #2724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -295,6 +295,7 @@ const ( | |||
FujiAvalancheGoV113 = "v1.13.0-fuji" | |||
AvalancheGoCompatibilityURL = "https://raw.githubusercontent.com/ava-labs/avalanchego/master/version/compatibility.json" | |||
SubnetEVMRPCCompatibilityURL = "https://raw.githubusercontent.com/ava-labs/subnet-evm/master/compatibility.json" | |||
CLILatestDependencyURL = "https://raw.githubusercontent.com/ava-labs/avalanche-cli/control-default-version/versions/latest.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need ot change this to main once this PR is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also make another PR just with the new file, merge, and then fix this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets merge this to pass CI and then make another PR to change it to main link
pkg/models/compatibility.go
Outdated
LatestVersion string `json:"latest-version"` | ||
RequirePrerelease bool `json:"require-prerelease"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for case like #2674, where we had to use a prerelease for fuji only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice work! adding comments on code organization but also on file organization
@@ -317,7 +316,7 @@ func createNodes(cmd *cobra.Command, args []string) error { | |||
UseLatestAvalanchegoPreReleaseVersion: useLatestAvalanchegoPreReleaseVersion, | |||
UseCustomAvalanchegoVersion: useCustomAvalanchegoVersion, | |||
} | |||
avalancheGoVersion, err := node.GetAvalancheGoVersion(app, avaGoVersionSetting) | |||
avalancheGoVersion, err := node.GetAvalancheGoVersion(app, avaGoVersionSetting, network) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should move this into a package such as pkg/dependecies/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was not addressed. lets move most if not all AvalancheGoVersionSettings related stuff to pkg/dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost ready. Please try to fix the cycle and also move AvalancheGoVersionSettings related stuff to pkg/dependencies, and for the moment leave the prompting only in pkg/node
Signed-off-by: sukantoraymond <[email protected]>
This PR was made in light of past incidents:
This PR ensures that users won't encounter errors if these incidents occur again in the future, and won't need to update their CLI version to resolve the issue.
The latest versions of AvalancheGo, Subnet EVM and other dependencies (ICM coming after this PR) will be defined in https://raw.githubusercontent.com/ava-labs/avalanche-cli/main/versions/latest.json. CLI will always use these dependencies' versions as default.
If a new version of a dependency such as AvalancheGo is released, we will first test the e2e flow to ensure that CLI still works with the new dependency. Once we have verified it, the AvalancheGo version will be updated in https://raw.githubusercontent.com/ava-labs/avalanche-cli/main/versions/latest.json.
An additional PR is needed to highlight the minimum version of dependency that can be used on each network (e.g. currently minimum release version for AvalancheGo in Fuji is v1.13.0-fuji and v1.13.0 in mainnet) -> Issue #2731