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

Disable "check for updates" #4556

Closed
Otiel opened this issue Apr 26, 2024 · 1 comment · Fixed by #4564
Closed

Disable "check for updates" #4556

Otiel opened this issue Apr 26, 2024 · 1 comment · Fixed by #4564
Assignees
Labels
enhancement New feature or request help wanted Issue caused by core project dependency modules or library
Milestone

Comments

@Otiel
Copy link
Contributor

Otiel commented Apr 26, 2024

Kiota is checking for updates by making a request to https://api.github.com/repos/microsoft/kiota/releases each time a command is started.

I'm working in an offline environment with no Internet access, so this check is useless for me and time consuming because I have to wait for the network timeout in order for Kiota to actually do the work.

How can I disable checking for updates?

@github-project-automation github-project-automation bot moved this to Todo 📃 in Kiota Apr 26, 2024
@baywet baywet added enhancement New feature or request help wanted Issue caused by core project dependency modules or library labels Apr 26, 2024
@baywet baywet added this to the Backlog milestone Apr 26, 2024
@baywet
Copy link
Member

baywet commented Apr 26, 2024

Hi @Otiel ,
Thanks for using kiota and for reaching out.
This is not possible today, but we could add an environment variable to support this.
I suggest we name this environment variable "KIOTA_OFFLINE_ENABLED" or something along those lines.
The check for the new version is being done here.

var updateService = new UpdateService(httpClient, logger, Configuration.Update);

And you can read the environment variable from the configuration

Lastly, we should add an entry to this table

With all those details in mind, is this something you'd be interested in submitting a pull request for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Issue caused by core project dependency modules or library
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants