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
819 stars 116 forks source link

.: -: no Go files #109

Closed priyolahiri closed 2 years ago

priyolahiri commented 2 years ago

Steps to reproduce:

  1. Check out git@github.com:mongodb/mongodb-atlas-kubernetes.git
  2. install and run go-licenses csv . from the directory

Output: F0225 13:03:44.868040 99714 main.go:43] errors for ["."]: .: -: no Go files in /pathtorepo

wlynch commented 2 years ago

I think this is WAI? There is not a Go package in the top level folder of https://github.com/mongodb/mongodb-atlas-kubernetes

go-licenses expects a package path similar to go build. Would go-licenses csv ./... work for what you want?

Bobgy commented 2 years ago

https://github.com/google/go-licenses/pull/111 added documentation for what package formats are supported