added mix build path env var to the mix compile

This commit is contained in:
Colby Dehart 2018-06-01 11:56:47 -04:00
parent 801c12a881
commit d760558007
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ endfunction
function! ale_linters#elixir#mix#Command(buffer) abort
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
call ale#linter#Define('elixir', {