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
833 stars 125 forks source link

Remove savePath before looking for packages #99

Closed benmoss closed 2 years ago

benmoss commented 2 years ago

This prevents users who save their licenses into their source tree from getting those as packages themselves.

Fixes #91

dprotaso commented 2 years ago

cc @wlynch

wlynch commented 2 years ago

@jimmale This is effectively a revert of https://github.com/google/go-licenses/pull/90. Since this is causing problems for people I'm going to approve this so we can roll back to a safe state - we can do some more thinking for how we want to support your use case moving forward.

benmoss commented 2 years ago

If we could exclude the savePath from the directories being scanned I think that could solve both problems