Skip to content
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

feat: overriding ic admin versions #864

Merged
merged 7 commits into from
Sep 5, 2024

Conversation

NikolaMilosa
Copy link
Contributor

@NikolaMilosa NikolaMilosa commented Sep 4, 2024

Adds possibility to specify a version of ic-admin to wrap.

Previously we were forced to rely on governance canister version and fallback to a default.
Now we have the full control. The default is from-governance which is the same behavior as before.

To run dre with ic-admin with governance version:

dre --ic-admin-version from-governance/governance/govn/g get subnet-list

To run dre with ic-admin from default version that is updated when we update deps:

dre --ic-admin-version default/d get subnet-list

To run dre with ic-admin from a specific commit we can use:

dre --ic-admin-version <commit> get subnet-list

Also its possible to specify everything with an env variable IC_ADMIN_VERSION

IC_ADMIN_VERSION=default dre get subnet-list

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner September 4, 2024 19:22
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NikolaMilosa NikolaMilosa merged commit 69b4cf3 into main Sep 5, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-overriding-ic-admin-versions branch September 5, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants