summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gurgel <antonio@goorzhel.com>2022-12-28 04:05:32 -0800
committerGitHub <noreply@github.com>2022-12-28 21:05:32 +0900
commitef6715ee41f7de570e270456a261fd005c67884e (patch)
treefb6c377d35570cb6b6e54aedfd7c9d74acfe59e2
parent457e0a50f1e20694620207f6d9b522a3371ff04c (diff)
downloadale-ef6715ee41f7de570e270456a261fd005c67884e.zip
nix: durably handle versions before 2.4 (#4398)
What I should have done in 4394. Idea: @w0rp
-rw-r--r--ale_linters/nix/nix.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/nix/nix.vim b/ale_linters/nix/nix.vim
index 64c95ab9..5d80f652 100644
--- a/ale_linters/nix/nix.vim
+++ b/ale_linters/nix/nix.vim
@@ -5,10 +5,10 @@
function! ale_linters#nix#nix#Command(buffer, output, meta) abort
let l:version = a:output[0][22:]
- if l:version =~# '^\(2.[4-9]\|2.[1-9][0-9]\+\|3\).*'
- return 'nix-instantiate --log-format internal-json --parse -'
- else
+ if l:version =~# '^\(1\|2.[0-3]\.\).*'
return 'nix-instantiate --parse -'
+ else
+ return 'nix-instantiate --log-format internal-json --parse -'
endif
endfunction