Skip to content

feat: Add finch update-finch command#1451

Draft
cartrius wants to merge 1 commit intorunfinch:mainfrom
cartrius:update-finch
Draft

feat: Add finch update-finch command#1451
cartrius wants to merge 1 commit intorunfinch:mainfrom
cartrius:update-finch

Conversation

@cartrius
Copy link
Copy Markdown
Contributor

@cartrius cartrius commented Jul 9, 2025

Description of changes:

  • Added new finch update-finch command to allow users to update Finch to the newest release through the CLI. This will download and install the pkg/msi with the newest version of Finch. This feature supports users on MacOS and Windows. Linux users should continue to use package managers
  • Added --install or -i flag to install. The default behavior of finch update-finch is to check for an update instead of immediately installing, for user confirmation/safety.

Testing done:

  • Added unit-tests for newly created finch update-finch

  • Updated finch locally (on darwin/aarch64)

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Copy Markdown
Contributor

@sondavidb sondavidb left a comment

Choose a reason for hiding this comment

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

Left quite a few comments (it's a pretty big change!) — overall really happy with the general flow/direction of it, just a few parts that I think need a little more attention. Excited to get this change out 🙂

Tests are failing but it seems to be because you were using the wrong gomock, if you just change that import the testing suite should run so don't worry too much about all the red lol

Comment thread cmd/finch/updatefinch.go Outdated
Comment thread pkg/version/version_update_checker.go Outdated
Comment thread cmd/finch/updatefinch.go Outdated
Comment thread cmd/finch/main_remote_test.go Outdated
Comment thread cmd/finch/updatefinch.go Outdated
Comment thread pkg/updatefinch/updatefinch_test.go Outdated
Comment thread cmd/finch/updatefinch_test.go Outdated
Comment thread pkg/updatefinch/updatefinch.go Outdated
Comment thread pkg/updatefinch/updatefinch.go Outdated
Comment thread pkg/updatefinch/updatefinch.go Outdated
@cartrius cartrius force-pushed the update-finch branch 6 times, most recently from 38f732b to 88794ec Compare July 15, 2025 23:25
Comment thread pkg/update/update.go Outdated
Comment thread pkg/update/update.go Outdated
Comment thread pkg/update/update.go Outdated
@cartrius cartrius force-pushed the update-finch branch 2 times, most recently from a299c1a to f1cd49b Compare July 22, 2025 19:28
Comment thread cmd/finch/update_finch_test.go Outdated
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.

It would probably be good practice if we can get this parallelized. Maybe we can take it as a followup?

Comment thread pkg/update/update.go Outdated
@sondavidb
Copy link
Copy Markdown
Contributor

ubuntu tests failing I think are not an issue with the PR since we're seeing failures across the board

sondavidb
sondavidb previously approved these changes Jul 23, 2025
sondavidb
sondavidb previously approved these changes Jul 28, 2025
Signed-off-by: Cartrius Phipps <cartrius@amazon.com>
@Shubhranshu153 Shubhranshu153 marked this pull request as draft January 8, 2026 02:16
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