mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-21 02:22:13 +08:00
nix: handle versions past 2.9 (#4394)
This commit is contained in:
@@ -85,6 +85,16 @@ Execute(The nix command should add 'log-format' option for nix version 2.9):
|
||||
\ 'nix-instantiate --log-format internal-json --parse -',
|
||||
\ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.9.0pre20211206_ignored'], '')
|
||||
|
||||
Execute(The nix command should add 'log-format' option for nix version 2.10):
|
||||
AssertEqual
|
||||
\ 'nix-instantiate --log-format internal-json --parse -',
|
||||
\ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.10.0pre20221221_ignored'], '')
|
||||
|
||||
Execute(The nix command should add 'log-format' option for nix version 2.20):
|
||||
AssertEqual
|
||||
\ 'nix-instantiate --log-format internal-json --parse -',
|
||||
\ ale_linters#nix#nix#Command('', ['nix-instantiate (Nix) 2.20.0pre20221221_ignored'], '')
|
||||
|
||||
Execute(The nix command should add 'log-format' option for nix version 3.0):
|
||||
AssertEqual
|
||||
\ 'nix-instantiate --log-format internal-json --parse -',
|
||||
|
||||
Reference in New Issue
Block a user