Skip to content

Bug: documentation to bulk accept OSI/FSF licenses leads to error when applied, and absence of working documentation to bulkd accept OSI/FSF licenses #696

@vemonet

Description

@vemonet

Describe the bug

In the past (~v0.14) there was a key allow-osi-fsf-free = "either" which would accept all OSI/FSF licenses by default. Which seems to be an excellent default, or at least something that should be easy to define for a user

The current documentation website mentions the use of allow-osi-fsf-free

If the license is OSI Approved or FSF Free/Libre, the [licenses.allow-osi-fsf-free] configuration determines its status, if it is neither the check continues

But if I try to use allow-osi-fsf-free I get an error when running cargo deny check

[licenses]
allow-osi-fsf-free = "both"
cargo deny check
error[deprecated]: this key has been removed, see https://github.com/EmbarkStudios/cargo-deny/pull/611 for migration information
   ┌─ curies.rs/deny.toml:91:1
   │
91 │ allow-osi-fsf-free = "both"
   │ ━━━━━━━━━━━━━━━━━━

Moreover the allow-osi-fsf-free key has disappeared from the comment in the deny.toml generated by cago deny init, which seems to indicate that it is not supported anymore and that the documentation website is not up-to-date

Overall from the current documentation it is not clear how to bulk accept OSI/FSF licenses (I hope the feature has not disappeared! It is such a basic and useful feature), where can we find those instructions?

Thanks

To reproduce

  1. Install the latest version of cargo-deny v0.16.1
  2. cargo deny init
  3. Add allow-osi-fsf-free = "both" to the generated deny.toml
  4. Run cargo deny check > error

cargo-deny version

0.16.1

What OS were you running cargo-deny on?

Linux

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions