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

Auto-update #72

Closed
gandarez opened this issue Sep 22, 2020 · 6 comments
Closed

Auto-update #72

gandarez opened this issue Sep 22, 2020 · 6 comments
Labels

Comments

@gandarez
Copy link
Member

Make wakatime-cli be able to update its own binary without depending upon the user.

@gandarez gandarez added the p2 Low Priority label Sep 22, 2020
@dron22
Copy link
Contributor

dron22 commented May 21, 2021

@alanhamlett This is already handled by the plugins, right? Once, they switch from wakatime py to wakatime-cli they will always pull the latest release, correct?

@gandarez
Copy link
Member Author

gandarez commented May 21, 2021

Currently the majority of plugins updates wakatime when it's outdated. My idea here was to not wait for any IDE to do it but the cli could be smart enough and auto-update itself.

@alanhamlett
Copy link
Member

That seems possible for the future, but not necessary in the first launch since the plugins already need to download wakatime-cli so the code is already implemented in the plugins.

@muety
Copy link

muety commented Jun 21, 2021

Just out of curiosity, what is the current state of the rollout of the new CLI? I think I'm still using the legacy version in both of my machines. How will the migration take place? Do you require the plugins maintainer's cooperation for this? And how can I tell whether I'm using the old or new CLI version except inspecting the user agent string as received at the server?

@alanhamlett
Copy link
Member

what is the current state of the rollout of the new CLI?

We're waiting to rollout until fixing this proxy issue #385 It's been difficult to fix, and might be a problem with Go's tls library.

Do you require the plugins maintainer's cooperation for this?

We maintain most of the plugins, but a few community built plugins (like this) will need the maintainer's help to switch to the new wakatime-cli.

how can I tell whether I'm using the old or new CLI version

Easiest way is visit https://wakatime.com/api/v1/users/current/user_agents. The first item is the most recent plugin seen by wakatime, but might have up to 20 seconds lag. If "value" says Python then it's the old wakatime-cli. If it says Go, then it's the new cli.

@alanhamlett
Copy link
Member

We've implemented auto-updating wakatime-cli in most plugins now, so we don't need to build it into wakatime-cli.

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

No branches or pull requests

4 participants