Skip to content

Auto update check should never run when generating completion #1074

Open
@10kc-emilyk

Description

@10kc-emilyk

Meta:

CircleCI CLI Version: 0.1.30995+77b1f51 (homebrew)

Operating System: macOS 14.6.1 23G93 arm64

CircleCI CLI Diagnostic:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /Users/emily.klassen/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API...
Ok.
Hello, Emily Klassen.

Current behavior:

Shell completion is sometimes slow, likely due to the auto update check. Digging in, i can see that the update check does run when generating completion

$ echo 'last_update_check: 2024-08-06T16:13:09.832482-07:00' > ~/.circleci/update_check.yml
$ circleci __complete ''
⠧ Checking for updates...

Expected behavior:

The update check should never run for the __complete command

When did this begin / Was this previously working?:

This was likely not previously working.

Additional Information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions