Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DeepSourceCorp/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: DeepSourceCorp/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: self-update
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 9 files changed
  • 3 contributors

Commits on Mar 1, 2026

  1. Add background auto-updater

    - Fetch manifest from CDN on every invocation, download and replace
      binary if a newer version exists
    - Verify SHA256 checksum before replacing, extract from tar.gz or zip
    - Skip update in dev builds, CI environments, or when auto_update is
      false in config.toml
    - Run update check in background goroutine, print notice to stderr
      after command completes
    - Add AutoUpdate *bool field to CLIConfig for opt-out
    jai-deepsource committed Mar 1, 2026
    Configuration menu
    Copy the full SHA
    3440708 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    55f9cbd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40ff0fa View commit details
    Browse the repository at this point in the history
  4. Split auto-updater into two-phase check-then-apply flow

    - Phase 1 (CheckForUpdate) fetches manifest and writes state file if newer version exists, with a short 3s timeout to avoid slowing down CLI startup
    - Phase 2 (ApplyUpdate) reads state file on next run and applies the update with a 30s timeout
    - Removes background goroutine and channel-based approach in favor of synchronous two-phase model
    - State file (update.json) is cleared before applying so broken updates don't retry forever
    - Adds UpdateState struct and read/write/clear helpers for on-disk persistence
    - Adds tests for state file lifecycle, version comparison, download + checksum verification, and no-op when state file is absent
    jai-deepsource committed Mar 1, 2026
    Configuration menu
    Copy the full SHA
    a614369 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f3aebaa View commit details
    Browse the repository at this point in the history
  6. Make CDN base URL configurable and enable auto-update for dev builds

    - Extract hardcoded cli.deepsource.com URL into buildinfo.BaseURL so dev builds can point to cli.deepsource.one
    - Only skip auto-update for local dev builds (version == "development"), not all dev-mode builds
    - Update tests to reflect the new behavior
    jai-deepsource committed Mar 1, 2026
    Configuration menu
    Copy the full SHA
    2aab1f7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e888cf0 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2026

  1. Fix version parsing for strings with build metadata

    - Strip pre-release/build suffix (e.g. "44-e888cf0f" → "44") before parsing patch version
    - Fixes strconv.Atoi failure when version contains a commit hash
    jai-deepsource committed Mar 2, 2026
    Configuration menu
    Copy the full SHA
    daafd46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7d18bc View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2026

  1. 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>
    sourya-deepsource and claude committed Mar 7, 2026
    Configuration menu
    Copy the full SHA
    d766bb9 View commit details
    Browse the repository at this point in the history
Loading