mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
nix: durably handle versions before 2.4 (#4398)
What I should have done in 4394. Idea: @w0rp
This commit is contained in:
@@ -5,10 +5,10 @@
|
|||||||
function! ale_linters#nix#nix#Command(buffer, output, meta) abort
|
function! ale_linters#nix#nix#Command(buffer, output, meta) abort
|
||||||
let l:version = a:output[0][22:]
|
let l:version = a:output[0][22:]
|
||||||
|
|
||||||
if l:version =~# '^\(2.[4-9]\|2.[1-9][0-9]\+\|3\).*'
|
if l:version =~# '^\(1\|2.[0-3]\.\).*'
|
||||||
return 'nix-instantiate --log-format internal-json --parse -'
|
|
||||||
else
|
|
||||||
return 'nix-instantiate --parse -'
|
return 'nix-instantiate --parse -'
|
||||||
|
else
|
||||||
|
return 'nix-instantiate --log-format internal-json --parse -'
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user