google / go-licenses

A lightweight tool to report on the licenses used by a Go package and its dependencies. Highlight! Versioned external URL to licenses can be found at the same time.
Apache License 2.0
790 stars 117 forks source link

Reporting warnings for external packages on Windows #255

Open delsner opened 4 months ago

delsner commented 4 months ago

I'm using go-licenses to create a conda-forge feedstock. During the Windows build (and only on Windows), go-licenses prints warnings for most (all?) external packages, e.g.:

$ go-licenses save ./cmd/logcli --save_path ../library_licenses --ignore github.com/grafana/loki
...
W0209 18:12:36.211214    2404 library.go:163] module github.com/josharian/intern does not have dir and it's not vendored, cannot discover the license URL. Report to go-licenses developer if you see this.
W0209 18:12:36.211214    2404 library.go:163] module github.com/go-kit/kit does not have dir and it's not vendored, cannot discover the license URL. Report to go-licenses developer if you see this.
W0209 18:12:36.211214    2404 library.go:163] module github.com/spf13/afero does not have dir and it's not vendored, cannot discover the license URL. Report to go-licenses developer if you see this.
...

Therefore, I'm reporting this issue here and would appreciate any pointers on how to fix these warnings on my end. Thank you!