Skip to content

feat: Auto-update network launcher after updating icp-cli#401

Merged
adamspofford-dfinity merged 4 commits intomainfrom
spofford/network-autoupdate
Mar 4, 2026
Merged

feat: Auto-update network launcher after updating icp-cli#401
adamspofford-dfinity merged 4 commits intomainfrom
spofford/network-autoupdate

Conversation

@adamspofford-dfinity
Copy link
Copy Markdown
Contributor

No description provided.

@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner March 4, 2026 14:38
/// Like [`get_cached_launcher_version`], but for the "latest" tag also checks
/// whether the launcher was downloaded by an older CLI version, returning `None`
/// if so. Pinned versions are never considered stale.
pub fn get_cached_launcher_version_if_fresh(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

get_cached_launcher_version is now only called from crates/icp-cli/tests/common/context.rs, which has a comment saying it replicates the command's logic. Since the command switched to this function, the test helper should match — which would make the old function dead code and allow its removal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think the test should use the new function but I don't think the old function should be deleted, some other piece of code may want it in the future.

@adamspofford-dfinity adamspofford-dfinity enabled auto-merge (squash) March 4, 2026 17:47
@adamspofford-dfinity adamspofford-dfinity merged commit 7f92e2c into main Mar 4, 2026
84 checks passed
@adamspofford-dfinity adamspofford-dfinity deleted the spofford/network-autoupdate branch March 4, 2026 17: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.

2 participants