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: Set license information for packages with rules_license #1118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brentleyjones
Copy link
Collaborator

Resolves #1092.

@brentleyjones
Copy link
Collaborator Author

I should add some tests, but otherwise it's ready for review.

@brentleyjones
Copy link
Collaborator Author

I also want to set package_info even when no license exists. I'll make that change as well.

@brentleyjones brentleyjones force-pushed the bj/set-license-information-for-packages-with-rules_license branch 2 times, most recently from 13c2078 to 307ba4e Compare June 26, 2024 21:53
Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones force-pushed the bj/set-license-information-for-packages-with-rules_license branch from 307ba4e to 0abe909 Compare June 26, 2024 21:54
Copy link
Owner

@cgrindel cgrindel left a comment

Choose a reason for hiding this comment

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

Overall, LGTM. Let me know when you add some tests and I will take another look.


# Name won't be set for `package` declarations
if decl.name:
parts.extend(scg.new_attr("name", decl.name, indent + 1))
Copy link
Owner

Choose a reason for hiding this comment

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

Just to confirm. The case when a name won't be present is the package declaration. Is that correct?

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.

Feature Request: Collect license data
2 participants