-
Notifications
You must be signed in to change notification settings - Fork 645
Do not automatically update go.mod and go.sum files #2730
Comments
Can you share any Go related settings you might have added/edited? You can see these by running the command @CameronGo On each file save, we run @stamblerre Correct me if I am wrong, but doesn't |
Yes, the |
@ramya-rao-a the only go related settings i have changed at this point are:
I can confirm that yes running Is it necessary to run any of those things as soon as a project is opened or on file save? As it stands today our engineers are just constantly running |
@CameronGo @stamblerre What would you suggest here? |
@CameronGo: I recommend taking a look at golang/go#27643 and the related issues. |
Thanks @stamblerre Closing this issue as unfortunately we cannot avoid running |
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:
The text was updated successfully, but these errors were encountered: