Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive scan of local project #43

Open
dahankzter opened this issue Nov 26, 2018 · 3 comments
Open

Recursive scan of local project #43

dahankzter opened this issue Nov 26, 2018 · 3 comments

Comments

@dahankzter
Copy link

Perhaps I am doing something wrong but GLD does not seem to recursively scan may vendor directory for licenses. Is that by design? I have a Godep setup to handle deps and I would like to ensure (without legal status) that the included deps are of a certain license.

I am now using a series of bash commands to extract the deps as seen by dep but it is a bit shaky.

@vmarkovtsev
Copy link
Collaborator

Yes, this is by design. You need to compile a list of project directories and feed it to GLD. E.g. try this:

find vendor/ -mindepth 2 -maxdepth 2|xargs license-detector

@dahankzter
Copy link
Author

Ok I will use some heuristics to find the project directories. Would it be possible to extend the tools scope to support vendor/modules etc recursively?

@vmarkovtsev
Copy link
Collaborator

I guess it will be possible by adding an extra command which runs those heuristics and outputs the list of probable project directories to stdout. GLD's algorithm is designed to be project-centric, that's the axis on which everything else is attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants