Skip to content
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
@CameronGo

Description

@CameronGo

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:

  1. Open any Go project that is using Go modules
  2. Within a few seconds you will see the go.mod and go.sum files as modified with changes pending commits to SCM

Metadata

Metadata

Assignees

No one assigned

    Labels

    go-modulesRelated to Go modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions