Configuring 'go list' behavior

If you do not want to run go list after every modification of go.mod, open settings by pressing &shortcut:ShowSettings; and navigate to Build, Execution, Deployment | Build Tools. Clear the Reload project after changes in the build scripts checkbox.

By default, GoLand reloads the project after any change in the go.mod file. But if you select the External changes option, go list won’t be executed automatically when you edit files inside the IDE. In this case you will see the Load Go modules Changes icon. Finish your editing and click the icon to load the changes.

Disable go list on modification of go.mod