8000 include LICENSE file in published crates by decathorpe · Pull Request #355 · brendanzab/codespan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

include LICENSE file in published crates #355

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

Merged
merged 1 commit into from
Feb 5, 2025
Merged

include LICENSE file in published crates #355

merged 1 commit into from
Feb 5, 2025

Conversation

decathorpe
Copy link
Contributor

The terms of the Apache-2.0 license include a requirement that (re)distributed sources contain a copy of the license text. This is a problem for Linux distributions which need to package the crates from this project (and technically, it's also a problem for redistributing sources via crates.io).

This PR includes a symlink to the LICENSE file in all three published crates, which should make cargo publish inlude this file when publishing to crates.io. If this project is published from a Windows based machine, full copies of the file might be needed instead.

@danakj
Copy link
danakj commented Oct 8, 2024

I filed #365 which this PR will resolve.

@anforowicz
Copy link

@Johann150, can you please take a look? This PR will help resolve Chromium bug at https://crbug.com/378272935

@kaleidawave kaleidawave linked an issue Feb 5, 2025 that may be closed by this pull request
@kaleidawave
Copy link
Collaborator

As explained in #365, other repositories need a LICENSE file for reference (as they don't read the manifest file). I see this PR adds symlinks for the sub-crates to reference the main license (thus staying in sync), which should help users of this crate.

I believe the release is done on a Linux machine but I think using symlink should also be fine on a Windows machine (I have had success using symlinks with Git on my windows machine).

Thanks for this improvement!

@kaleidawave kaleidawave merged commit 2cb63fb into brendanzab:master Feb 5, 2025
@decathorpe
Copy link
Contributor Author

Thanks!

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.

Include LICENSE files in the published codespan-reporting crate
4 participants
0