vlang / v-analyzer

The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more.
MIT License
103 stars 13 forks source link

analyzer: use latest install script when updating #81

Closed ttytm closed 6 months ago

ttytm commented 6 months ago

Fixes #11

If there were installs from the prior v-analyzer repo running v-analyzer up can currently cause several issues.

For a reproduction, put the install script of the old repo into v-analyzers (old install script: https://github.com/v-analyzer/v-analyzer/blob/main/install.vsh) config dir (e.g. ~/.config/v-analyzer/install.vsh). That's the location that v-analyzer is currently looking for a script and it won't fetch a fresh script when it finds it. Then running v-analzyer up - even with the latest nightly version - It will "update" / "downgrade" to the latest release of the old repo.

To fix this, and to also get advantages of potential fixes and updates to the install script now will always fetch the latest install script for an installation of a release or nightly version.

The fix will work after using a new binary that contains the changes in this PR.