mirror of https://github.com/dense-analysis/ale
added mix build path env var to the mix compile
This commit is contained in:
parent
801c12a881
commit
d760558007
|
@ -31,7 +31,7 @@ endfunction
|
||||||
|
|
||||||
function! ale_linters#elixir#mix#Command(buffer) abort
|
function! ale_linters#elixir#mix#Command(buffer) abort
|
||||||
let l:project_dir = fnamemodify(ale#path#FindNearestFile(a:buffer, 'mix.exs'), ':h')
|
let l:project_dir = fnamemodify(ale#path#FindNearestFile(a:buffer, 'mix.exs'), ':h')
|
||||||
return 'cd ' . l:project_dir . ' && mix compile %s'
|
return 'cd ' . l:project_dir . ' && MIX_BUILD_PATH=/tmp/mix mix compile %s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call ale#linter#Define('elixir', {
|
call ale#linter#Define('elixir', {
|
||||||
|
|
Loading…
Reference in New Issue