Skip to content

(Auto-)updater#621

Merged
rusq merged 17 commits intomasterfrom
updater
Feb 22, 2026
Merged

(Auto-)updater#621
rusq merged 17 commits intomasterfrom
updater

Conversation

@rusq
Copy link
Copy Markdown
Owner

@rusq rusq commented Feb 22, 2026

  • basic update checker
  • vibecode the autoupdater
  • mark updater as experimental

Fixes #541

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements an experimental auto-updater feature for slackdump that allows users to check for and automatically install updates. The implementation includes platform detection (macOS/Homebrew, Alpine/APK, Debian-Ubuntu/APT, Windows/Generic Binary), a GitHub API client for fetching release information, and update mechanisms appropriate for each platform. The feature is marked as experimental and added as a new command under slackdump tools update.

Changes:

  • Added update checker that compares current version against GitHub releases
  • Implemented platform-aware auto-update functionality supporting Homebrew, APK, APT, and direct binary downloads
  • Created GitHub API client for anonymous access to release information

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
cmd/slackdump/internal/diag/update.go New CLI command for checking and installing updates with -auto flag
cmd/slackdump/internal/diag/tools.go Registered cmdUpdate in the tools command list
cmd/slackdump/internal/diag/updater/updater.go Core updater logic with release comparison and version checking
cmd/slackdump/internal/diag/updater/updater_test.go Tests for Release.Equal method
cmd/slackdump/internal/diag/updater/updater_mock_test.go Generated mock for fetcher interface
cmd/slackdump/internal/diag/updater/autoupdate.go Platform-specific update implementations (Homebrew, APK, APT, binary)
cmd/slackdump/internal/diag/updater/autoupdate_test.go Tests for findAsset function
cmd/slackdump/internal/diag/updater/platform/platform.go Platform and package manager detection logic
cmd/slackdump/internal/diag/updater/platform/platform_test.go Tests for platform detection and version parsing
cmd/slackdump/internal/diag/updater/github/github.go Anonymous GitHub API client for fetching releases
cmd/slackdump/internal/diag/updater/github/releases.go Generated data structures for GitHub releases API
cmd/slackdump/internal/cfg/cfg.go Added IsReleased method to BuildInfo for version validation
cmd/slackdump/internal/cfg/cfg_test.go Tests for IsReleased method

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.

@rusq
Copy link
Copy Markdown
Owner Author

rusq commented Feb 22, 2026

  • 99% vibe

@rusq rusq merged commit ed536d1 into master Feb 22, 2026
3 checks passed
@rusq rusq deleted the updater branch February 22, 2026 04:30
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.

Feature Request: Automatic Update Option

2 participants