You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add self-updater for CLI binary
- Two-phase update: check manifest, apply on next run
- Verify archive checksum before replacing binary
- Skip in CI and dev builds, add config opt-out
- Bump version to 2.0.45
* Fix archive download URL to include /build/ path segment
The CDN serves archives under /build/, but the URL was constructed
without it, causing 404 errors during self-update downloads.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix DeepSource review issues in self-updater
- Handle os.UserHomeDir() error to prevent state file in relative paths
- Restrict config dir permissions from 0o755 to 0o750
- Limit download size with io.LimitReader (50MB cap)
- Replace unused parameter `r` with `_` in test handler
- Refactor replaceBinary into testable replaceBinaryAt function
- Rewrite tests to call actual functions instead of reimplementing logic
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix remaining DeepSource issues: test logic and coverage gaps
- Rewrite TestCheckForUpdate_AlreadyUpToDate to call CheckForUpdate
with a mock HTTP server instead of reimplementing logic
- Add tests for FetchManifest, downloadFile, and error paths
(HTTP errors, network errors, checksum mismatch, missing platform,
nil build info, zip archive path)
- Add parseSemver test cases for invalid minor/patch and pre-release
- Add ClearBuildInfo helper for test setup
- Update package coverage from 47.5% to ~80%
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
Co-authored-by: Sourya Vatsyayan <sourya@deepsource.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments