-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: checkhealth after checksum changes
Related to #669
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ function health.check() | |
end | ||
|
||
-- check if os is supported | ||
local download = require('blink.cmp.fuzzy.download.system') | ||
local system_triple = download.get_triple_sync() | ||
local download_system = require('blink.cmp.fuzzy.download.system') | ||
local system_triple = download_system.get_triple_sync() | ||
if system_triple then | ||
vim.health.ok('Your system is supported by pre-built binaries (' .. system_triple .. ')') | ||
else | ||
|
@@ -23,10 +23,9 @@ function health.check() | |
) | ||
end | ||
|
||
if | ||
vim.uv.fs_stat(download.lib_path) | ||
or vim.uv.fs_stat(string.gsub(download.lib_path, 'libblink_cmp_fuzzy', 'blink_cmp_fuzzy')) | ||
then | ||
local download_files = require('blink.cmp.fuzzy.download.files') | ||
local lib_path_without_prefix = string.gsub(download_files.lib_path, 'libblink_cmp_fuzzy', 'blink_cmp_fuzzy') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Saghen
Author
Owner
|
||
if vim.uv.fs_stat(download_files.lib_path) or vim.uv.fs_stat(lib_path_without_prefix) then | ||
vim.health.ok('blink_cmp_fuzzy lib is downloaded/built') | ||
else | ||
vim.health.warn('blink_cmp_fuzzy lib is not downloaded/built') | ||
|
wouldn't this still result in that same error ?
Sorry, if I'm wrong.