Skip to content

feat: change auto update when off to start local binary and make auto update repo check configurable#339

Merged
pablocampogo merged 5 commits intomainfrom
auto-update-changes-for-graduator
Mar 18, 2026
Merged

feat: change auto update when off to start local binary and make auto update repo check configurable#339
pablocampogo merged 5 commits intomainfrom
auto-update-changes-for-graduator

Conversation

@pablocampogo
Copy link
Contributor

@pablocampogo pablocampogo commented Mar 18, 2026

Summary

  • The canopy binary at BinPath is now mandatory. The auto-updater validates it is present and executable on startup, and fatals with a clear error if it is not. The previous fallback to running the CLI in-process (cli.Start()) has been removed.
  • Both the auto-update enabled and disabled paths now go through the same coordinator UpdateLoop. When auto-update is disabled, the ReleaseManager is created with Enabled: false, and the UpdateLoop skips update checks on each timer tick via a simple continue, avoiding unnecessary logs and GitHub API calls while still handling process lifecycle, signal forwarding, and graceful shutdown.
  • The GitHub repo owner and name for core auto-updates are now configurable via config.json (autoUpdateRepoOwner, autoUpdateRepoName) with fallback to the existing defaults, replacing the previous environment-variable-only approach.

@pablocampogo pablocampogo self-assigned this Mar 18, 2026
Copy link
Collaborator

@rem1niscence rem1niscence left a comment

Choose a reason for hiding this comment

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

LGTM!

@pablocampogo pablocampogo merged commit c2eb787 into main Mar 18, 2026
2 checks passed
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