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

[[DEPENDENCY.additional]]: add diagnostics for missing license-files #152

Open
MaulingMonkey opened this issue Mar 15, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@MaulingMonkey
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It appears cargo-about will silently fail to generate license text for [[DEPPENDENCY.additional]] tags which only specify license-file and not license. This might occur if:

  • The license file is outside of the crate (e.g. using a relative path like ../../LICENSE-MIT, like I was trying to)
  • The license filename or path is typoed (e.g. LICENSE-MOT)
  • The license file was moved without updating about.toml (e.g. from LICENSE-MIT to LICENSE-MIT.md)

Describe the solution you'd like
Some kind of error, warning, or other diagnostic if a license-file isn't resolved.

Describe alternatives you've considered
My own needs for this feature are mooted by "Add a --workspace flag " #151 , but I imagine others will accidentally omit licenses trying to use this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant