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

import statement is uppercase, causing build-errors #3

Open
eBeyond opened this issue Mar 15, 2018 · 0 comments
Open

import statement is uppercase, causing build-errors #3

eBeyond opened this issue Mar 15, 2018 · 0 comments

Comments

@eBeyond
Copy link

eBeyond commented Mar 15, 2018

When building an go-lang application using your middleware I get this message from go build:

package github.com/Sirupsen/logrus: case-insensitive import collision: "github.com/Sirupsen/logrus" and "github.com/sirupsen/logrus"

It's related to your import which is github.com/Sirupsen/logrus and not github.com/sirupsen/logrus.

package logrusmiddleware

import (
	....

	"github.com/Sirupsen/logrus"

	....
)

So I receive this message and logrus is imported twice. ;)

thanks

jwoffindin added a commit to jwoffindin/echo-logrusmiddleware that referenced this issue May 16, 2018
As per https://github.com/sirupsen/logrus:

> Seeing weird case-sensitive problems? It's in the past been possible
> to import Logrus as both upper- and lower-case. Due to the Go package
> environment, this caused issues in the community and we needed a
> standard. Some environments experienced problems with the upper-case
> variant, so the lower-case was decided. Everything using logrus will
> need to use the lower-case: github.com/sirupsen/logrus. Any package that
> isn't, should be changed.
jwoffindin added a commit to jwoffindin/echo-logrusmiddleware that referenced this issue May 16, 2018
As per https://github.com/sirupsen/logrus:

> Seeing weird case-sensitive problems? It's in the past been possible
> to import Logrus as both upper- and lower-case. Due to the Go package
> environment, this caused issues in the community and we needed a
> standard. Some environments experienced problems with the upper-case
> variant, so the lower-case was decided. Everything using logrus will
> need to use the lower-case: github.com/sirupsen/logrus. Any package that
> isn't, should be changed.
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

No branches or pull requests

1 participant