Skip to content

Commit

Permalink
plugin: install tools with -mod=mod
Browse files Browse the repository at this point in the history
Install tools with -mod=mod instead of -mod=readonly to avoid problem
when some dependency of the tool being updated needs a newer version of
Go than some other dependency while also still satisfying the original
motivation for using the -mod flag (i.e. installing tools even when
GOFLAGSS=-mod=vendor).

Fixes fatih#3446
  • Loading branch information
bhcleek authored and mjolk committed Oct 4, 2022
1 parent 9cee991 commit a9d762a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function! s:GoInstallBinaries(updateBinaries, ...)
set noshellslash
endif

let l:get_base_cmd = ['go', 'install', '-v', '-mod=readonly']
let l:get_base_cmd = ['go', 'install', '-v', '-mod=mod']

" Filter packages from arguments (if any).
let l:packages = {}
Expand Down

0 comments on commit a9d762a

Please sign in to comment.