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

Ability to ignore unlicensed packages #88

Closed
sundowndev opened this issue Dec 14, 2021 · 1 comment · Fixed by #46
Closed

Ability to ignore unlicensed packages #88

sundowndev opened this issue Dec 14, 2021 · 1 comment · Fixed by #46

Comments

@sundowndev
Copy link

sundowndev commented Dec 14, 2021

Hi, we currently have azure sdk dependencies that have direct dependencies with internal packages which doesn't contain license. As it's a indirect dependency on our side, we can't just bump to a version that contains a license file, we need to have the ability to avoid checking license of those dependencies. In other terms, we want to avoid having errors for packages on which we don't have any control.

Examples

$ go-licenses save . --save_path=./acknowledgements \
  --filter github.com/Azure/azure-sdk-for-go/sdk/internal/log \
  --filter github.com/Azure/azure-sdk-for-go/sdk/internal/diag \
  --filter github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo \
  --filter github.com/Azure/azure-sdk-for-go/sdk/internal/uuid

$ go-licenses save . --save_path=./acknowledgements --filter github.com/Azure/azure-sdk-for-go/sdk/internal/*

# Another option would be to provide an option to ignore all packages that doesn't contain a license file.
$ go-licenses save . --save_path=./acknowledgements --ignore-unlicensed
# or
$ go-licenses save . --save_path=./acknowledgements --skip-missing
@sundowndev sundowndev changed the title Ability to ignore some packages Ability to ignore unlicensed packages Dec 14, 2021
@dschmidt
Copy link

dschmidt commented Mar 22, 2022

It would be especially nice to be able to exclude the current project.

edit:
I mean for the one you're checking the dependencies for.

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

Successfully merging a pull request may close this issue.

2 participants