Skip to content

cmd/go: "mod tidy" erroneously labels imports from within normally-ignored directories as direct #37376

Closed
@agnivade

Description

@agnivade

What version of Go are you using (go version)?

$ go version
1.13.5 and 1.14beta1

Does this issue reproduce with the latest release?

yes

What did you do?

Please fetch this branch of mine: https://github.com/mattermost/mattermost-server/tree/tidygomod

  • Run "go mod vendor". You will see some changes in go.mod.
  • Run "go mod tidy". Those changes go away.
    ???

Things I tried:

  • Tried doing a "go clean -modcache -i -r", but didn't help.
  • Tried re-generating the vendor directory again, but didn't help.

What did you expect to see?

I expect no changes to go.mod in whatever order I run those commands.

What did you see instead?

go.mod changed.

/cc @bcmills @jayconrod

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.modules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions