As Node.js developer I am still new to Golang and struggling with the dependency management in Go. I am using Go 1.11 and applied mod init
after importing all my dependencies. One of them is logrus which prevents me from compiling my go application.
The problem:
I believe that the problem is indeed inside of logrus, however I don't know how I could now get another (working) version of logrus, so that I can compile my application again.
/Users/redacted/Documents/redacted3/redacted2>Finished running tool: /usr/local/bin/go vet ./...
/Users/redacted/go/pkg/mod/github.com/sirupsen/logrus@v1.2.0/entry.go:51: undefined: Logger
/Users/redacted/go/pkg/mod/github.com/sirupsen/logrus@v1.2.0/entry.go:54: undefined: Fields
/Users/redacted/go/pkg/mod/github.com/sirupsen/logrus@v1.2.0/entry.go:61: undefined: Level
How can I get rid of these annoying kind of dependency issues?
Relevant import:
log "github.com/sirupsen/logrus"
Go.mod contains
github.com/sirupsen/logrus v1.2.0