bazelbuild / bazel-gazelle

Gazelle is a Bazel build file generator for Bazel projects. It natively supports Go and protobuf, and it may be extended to support new languages and custom rule sets.
Apache License 2.0
1.18k stars 373 forks source link

github.com/Sirupsen/logrus and github.com/sirupsen/logrus resolve to the same repository rule name #1052

Open nankingrider opened 3 years ago

nankingrider commented 3 years ago

What version of gazelle are you using?

0.23.0

What version of rules_go are you using?

0.27.0

What version of Bazel are you using?

3.7.0

Does this issue reproduce with the latest releases of all the above?

reproduce every time

What operating system and processor architecture are you using?

x86 linux

What did you do?

image

in the go.mod we have both github.com/Sirupsen/logrus and github.com/sirupsen/logrus

Only one letter differs with capital S and little s.

then I use bazel run //:gazelle update-repos -- -from_file=go.mod to generate BUILD.bazel

What did you expect to see?

BUILD.bazel is generated normally.

What did you see instead?

gazelle: imports github.com/Sirupsen/logrus and github.com/sirupsen/logrus resolve to the same repository rule name com_github_sirupsen_logrus

nankingrider commented 3 years ago

Any help is welcome and appreciated.!