Skip to content

fix: use build version for API client user agent#590

Merged
giornetta merged 1 commit into
masterfrom
fix/version-check-user-agent
May 27, 2026
Merged

fix: use build version for API client user agent#590
giornetta merged 1 commit into
masterfrom
fix/version-check-user-agent

Conversation

@giornetta
Copy link
Copy Markdown
Member

@giornetta giornetta commented May 27, 2026

Ref #313.

CivoAPIClient() called the GitHub releases API on every command just to set the user agent version, causing rate limiting in scripts. It now uses common.VersionCli (injected at build time via ldflags), removing the per-command request and reporting the running version instead of the latest release tag.

The existing 24h update check and civo version notice are unchanged. Supersedes #528.

Stops the per-command GitHub releases API call in CivoAPIClient that
caused rate limiting (#313), and reports the running version instead of
the latest release tag.
@giornetta giornetta added the bug Something isn't working label May 27, 2026
@giornetta giornetta merged commit 4aebebf into master May 27, 2026
3 checks passed
@giornetta giornetta deleted the fix/version-check-user-agent branch May 27, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants