Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to disable the update check #1140

Open
tedmielczarek-fastly opened this issue Feb 27, 2024 · 1 comment
Open

Add an option to disable the update check #1140

tedmielczarek-fastly opened this issue Feb 27, 2024 · 1 comment

Comments

@tedmielczarek-fastly
Copy link

Every time I look at a CI log I see the A new version of the Fastly CLI is available message, because we only update the version we use as-needed.

I would like it if the CLI had an option of some sort to disable this check. An environment variable or config option would be perfect. A commandline option would work, but would mean I would have to remember to include it in every CLI invocation in CI.

From looking at the code I noticed that passing --quiet does silence this output, but in CI I explicitly use --verbose so that the logs contain enough information to diagnose issues that crop up.

@kpfleming
Copy link
Contributor

kpfleming commented Aug 16, 2024

We already support a ttl attribute in config.toml for wasm-tools and Viceroy, and if that is set properly then no update checks are performed. Supporting this in the cli block in that file should be straightforward.

(edited: this would go into the cli block, not the fastly block)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants