-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go.mod automatically updated #15
Comments
Do you have a minimal reproducible example repo I can play around with? |
We think this happens because Lines 42 to 45 in 6c7522a
go mod , go get does different things. We (@vitreuz) tried to turn off auto-update through let g:skip_autoupdate = 1 but that didn't disable the updating.
|
@luan here's an example repo |
@Changdrew that logic was added before vim-go actually started installing This issue is now only going to happen when running a fresh I'm still looking at how we can mitigate it on this repo though it should be a bit better now. |
Aand it looks like vim-go has actually already dealt with this. I couldn't reproduce the problem with latest everything anymore so it seems like it may be fixed. Please re-open if this continues happening for you. |
We're noticing that our
go.mod
file gets updated if we open a session inside a go mod project. The packages added are:We think it has to do with installing
vim-go
with:InstallBinaries
but we're not sure what's going on. When we set:let $GO111MODULE = 'off'
inbefore.vim
we don't get the updates togo.mod
so it's trying to install something..Have you seen behavior like this? Are we doing something wrong? Any help to get rid of the automatic go.mod updates would greatly appreciated!
The text was updated successfully, but these errors were encountered: