Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use lower case #5

Closed
wants to merge 1 commit into from
Closed

use lower case #5

wants to merge 1 commit into from

Conversation

rikkix
Copy link

@rikkix rikkix commented Aug 7, 2020

If not, it cannot be imported in another package which uses go mod, or it would be

go: finding module for package github.com/Sirupsen/logrus
go: found github.com/Sirupsen/logrus in github.com/Sirupsen/logrus v1.6.0
go: found github.com/crosbymichael/tracker/registry/inmem in github.com/crosbymichael/tracker v0.0.0-20160805174527-d54763ad6ba1
go: github.com/xxxx/xxxx imports
        github.com/Sirupsen/logrus: github.com/Sirupsen/[email protected]: parsing go.mod:
        module declares its path as: github.com/sirupsen/logrus
                but was required as: github.com/Sirupsen/logrus

Cause logrus declares it as github.com/sirupsen/logrus, so importing github.com/Sirupsen/logrus is invalid
https://github.com/sirupsen/logrus/blob/6699a89a232f3db797f2e280639854bbc4b89725/go.mod#L1

Related PR: sirupsen/logrus#384

@rikkix rikkix closed this by deleting the head repository Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant