diff --git a/build.py b/build.py index 4f619b3461..9f4189e216 100755 --- a/build.py +++ b/build.py @@ -844,6 +844,7 @@ def EnableGoCompleter( args ): new_env[ 'GO111MODULE' ] = 'on' new_env[ 'GOPATH' ] = p.join( DIR_OF_THIS_SCRIPT, 'third_party', 'go' ) new_env[ 'GOBIN' ] = p.join( new_env[ 'GOPATH' ], 'bin' ) + new_env[ 'GOFLAGS' ] = new_env.get('GOFLAGS', '') + ' -modcacherw' CheckCall( [ go, 'get', 'golang.org/x/tools/gopls@v0.4.2' ], env = new_env, quiet = args.quiet,