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

Locate license file in packge root if not specified in cargo metadata #2521

Merged

Conversation

nickcollier
Copy link
Contributor

#2476 added rules_license license metadata to crate BUILD files but many crates to do not have a license file specified in their cargo metadata. This PR adds a fallback that attempts to locate a license file in the crate package root directory.

@illicitonion illicitonion added this pull request to the merge queue Feb 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2024
@illicitonion illicitonion added this pull request to the merge queue Feb 26, 2024
Merged via the queue into bazelbuild:main with commit 33860ab Feb 26, 2024
3 checks passed
qtica added a commit to qtica/rules_rust that referenced this pull request Apr 1, 2024
…bazelbuild#2521)

bazelbuild#2476 added rules_license license metadata to crate BUILD files but many
crates to do not have a license file specified in their cargo metadata.
This PR adds a fallback that attempts to locate a license file in the
crate package root directory.
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