This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
Do not automatically update go.mod and go.sum files #2730
Closed
Description
When opening a Go project that is using modules the go.mod and go.sum files are updated immediately when the project is opened and when almost anything changes. This is problematic when making small hotfixes to the application where it is undesirable to update dependencies. In order to keep dependencies at current levels you must continually discard changes from SCM to ensure they are not checked in. Obviously excluding these files from SCM is not an option.
Steps to Reproduce:
- Open any Go project that is using Go modules
- Within a few seconds you will see the go.mod and go.sum files as modified with changes pending commits to SCM