On Thursday, September 5, 2019 at 8:48:11 PM UTC+3, Michael Ellis wrote: > > I ran :GoUpdateBinaries. >
> When I looked at git status, I saw that the go.mod and go.sum files had > changed. My go.mod now contains lines for all vim-go dependencies! > Running 'go get example.com/some/module' inside a Go module (the go.mod file is in the current directory or a parent directory) seems to add example.com/some/module to go.mod as an "// indirect" dependency. Also 'go get -u modA" will try to update modA's dependencies and add them also as "// indirect" dependencies to your go.mod. More details in https://github.com/golang/go/wiki/Modules At first glance, it seems that GoUpdateBinaries calls GoInstallBinaries which constructs a 'go get' command, optionally with a -u flag: https://github.com/fatih/vim-go/blob/master/plugin/go.vim#L117 https://github.com/fatih/vim-go/blob/master/plugin/go.vim#L191 Running 'go get ...' inside a module can add indirect dependencies to go.mod. Mihai -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9091117c-b39b-43aa-8ae8-7de5a6cea6e2%40googlegroups.com.