The command does not work in a module-based project, as it does not check the modules download space, instead relying on GOPATH/GOROOT only.