Giter Site home page Giter Site logo

Comments (5)

stevespringett avatar stevespringett commented on May 30, 2024 2

Yes, Dependency-Track will eventually support SPDX license expressions. Currently it's limited to a single SPDX ID, or an unresolved license name. IMO, I would leave the current rust implementation as-is, because its outputting exactly what it should be.

from cyclonedx-rust-cargo.

stevespringett avatar stevespringett commented on May 30, 2024 1

@UgniusV DT supports SPDX license IDs, but does not currently support SPDX license expressions. Refer to DependencyTrack/dependency-track#170 for updates. PR's are also welcome :-)

from cyclonedx-rust-cargo.

stevespringett avatar stevespringett commented on May 30, 2024

I'll let the maintainers comment on the implementation differences, but Dependency Track does not currently support expressions or evidence, only license id and name.

from cyclonedx-rust-cargo.

amy-keibler avatar amy-keibler commented on May 30, 2024

Hello! Thank you for opening an issue. We output licenses as expressions, because the Cargo manifest format definition of the license field indicates that it will be a SPDX license expression. The Rust community tends to default to MIT OR Apache-2.0 by community convention, so this field will probably rarely be a single license.

@stevespringett is there a plan for Dependency Track to support license expressions?

We could probably use something like the spdx crate to parse the expression into individual licenses and emit a single license where possible as a compatibility solution, but we might not be able to handle complex SPDX expressions (e.g. ones containing AND, OR, or WITH clauses).

from cyclonedx-rust-cargo.

UgniusV avatar UgniusV commented on May 30, 2024

Great, thanks for the information! Is there any ETA for when DT adds SPDX license support?

from cyclonedx-rust-cargo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.