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

feat(sggolicenses): add ignored dependencies #545

Closed
wants to merge 1 commit into from
Closed

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented May 31, 2024

Adds two go-licenses check functions to be able to pass repositories to be ignored. This might be needed if the repositories have an open-source license in a format which is not recognized by the tool.

See for example: ajstarks/svgo#73 and golang/freetype#94

Adds two go-licenses check functions to be able to pass repositories to
be ignored. This might be need if the repositories have an open-source
license in a format which is not recognised by the tool.
@hug-dev hug-dev requested a review from a team as a code owner May 31, 2024 08:58
// Check for disallowed types of Go licenses in a specific directory.
// By default, Google's forbidden and restricted types are disallowed.
// Allows to ignore some dependencies by specifying their package path (ie "github.com/einride/sage").
func CheckDirWithIgnored(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this many helpers it might be better to inline it in the specific repos where it's used - the code here is just meant to be the "most common default" use case - not all possible use cases

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will close for now, the problem in the repo has been solved in another way

@hug-dev hug-dev closed this Jun 12, 2024
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 this pull request may close these issues.

2 participants