sonatype-nexus-community / nancy

A tool to check for vulnerabilities in your Golang dependencies, powered by Sonatype OSS Index
Apache License 2.0
564 stars 74 forks source link

Installing via go get fails #37

Closed cloudlena closed 5 years ago

cloudlena commented 5 years ago
$ go get -u github.com/sonatype-nexus-community/nancy
# github.com/sonatype-nexus-community/nancy/audit
../go/src/github.com/sonatype-nexus-community/nancy/audit/auditlog.go:32:15: not enough arguments in call to aurora.Gray
        have (string)
        want (uint8, interface {})
# github.com/sonatype-nexus-community/nancy/ossindex
../go/src/github.com/sonatype-nexus-community/nancy/ossindex/ossindex.go:62:6: opts.Dir undefined (type func(string) badger.Options has no field or method Dir)
../go/src/github.com/sonatype-nexus-community/nancy/ossindex/ossindex.go:63:6: opts.ValueDir undefined (type func(string) badger.Options has no field or method ValueDir)
../go/src/github.com/sonatype-nexus-community/nancy/ossindex/ossindex.go:64:23: cannot use opts (type func(string) badger.Options) as type badger.Options in argument to badger.Open
../go/src/github.com/sonatype-nexus-community/nancy/ossindex/ossindex.go:161:16: txn.SetWithTTL undefined (type *badger.Txn has no field or method SetWithTTL)

fails on both Linux and macOS (using Go 1.13).

To install Nancy

Fix the respective dependencies.

cc @bhamail / @DarthHater