Controller-runtime: For downstream projects using go modules breaks due to uppercase 'github.com/Sirupsen/logrus'

Created on 21 Nov 2018  路  2Comments  路  Source: kubernetes-sigs/controller-runtime

For downstream projects using go modules fails due to uppercase reference at
https://github.com/kubernetes-sigs/controller-runtime/blob/master/Gopkg.lock#L72

Example output:

go: github.com/Sirupsen/[email protected]: parsing go.mod: unexpected module path "github.com/sirupsen/logrus"
go: error loading module requirements

re: https://github.com/golang/go/issues/28489
re: https://github.com/golang/go/issues/26208

Most helpful comment

@siscia I was able to workaround with importing
github.com/Sirupsen/logrus v1.0.6
and adding the following exclusions to my go.mod

exclude github.com/Sirupsen/logrus v1.3.0
exclude github.com/Sirupsen/logrus v1.2.0
exclude github.com/Sirupsen/logrus v1.1.1
exclude github.com/Sirupsen/logrus v1.1.0

I'm guessing this is effectively rolling back to a version before the rename broke everything.

All 2 comments

@paha How was this solved?

@siscia I was able to workaround with importing
github.com/Sirupsen/logrus v1.0.6
and adding the following exclusions to my go.mod

exclude github.com/Sirupsen/logrus v1.3.0
exclude github.com/Sirupsen/logrus v1.2.0
exclude github.com/Sirupsen/logrus v1.1.1
exclude github.com/Sirupsen/logrus v1.1.0

I'm guessing this is effectively rolling back to a version before the rename broke everything.

Was this page helpful?
0 / 5 - 0 ratings