Thread overview
Fetching licensing info for all dependencies of a DUB project
May 12, 2020
Paul Backus
May 12, 2020
Paul Backus
Jun 27, 2022
Christian Köstlin
Jun 28, 2022
Guillaume Piolat
Jun 29, 2022
Christian Köstlin
May 12, 2020
Hello folks,

Are there any tools that exist to help prepare a report of all the different software licenses used by dependencies of a DUB project?  (This should cover all pulled in dependencies, not just direct dependencies.)

Thanks and best wishes,

    -- Joe
May 12, 2020
On Tuesday, 12 May 2020 at 12:44:11 UTC, Joseph Rushton Wakeling wrote:
> Hello folks,
>
> Are there any tools that exist to help prepare a report of all the different software licenses used by dependencies of a DUB project?  (This should cover all pulled in dependencies, not just direct dependencies.)
>
> Thanks and best wishes,
>
>     -- Joe

You should be able to get this information from the JSON output of `dub describe`.
May 12, 2020
On Tuesday, 12 May 2020 at 12:59:14 UTC, Paul Backus wrote:
> You should be able to get this information from the JSON output of `dub describe`.

Cool, thanks.  Much appreciated :-)

Has anyone created any tools to condense that into a licensing report?  No worries if not, just curious.
May 12, 2020
On Tuesday, 12 May 2020 at 13:08:01 UTC, Joseph Rushton Wakeling wrote:
> On Tuesday, 12 May 2020 at 12:59:14 UTC, Paul Backus wrote:
>> You should be able to get this information from the JSON output of `dub describe`.
>
> Cool, thanks.  Much appreciated :-)
>
> Has anyone created any tools to condense that into a licensing report?  No worries if not, just curious.

Not that I know of. If you end up making one yourself, it might be worth posting in the Announce forum.
June 27, 2022

On 2020-05-12 15:23, Paul Backus wrote:

>

On Tuesday, 12 May 2020 at 13:08:01 UTC, Joseph Rushton Wakeling wrote:

>

On Tuesday, 12 May 2020 at 12:59:14 UTC, Paul Backus wrote:

>

You should be able to get this information from the JSON output of dub describe.

Cool, thanks.  Much appreciated :-)

Has anyone created any tools to condense that into a licensing report?  No worries if not, just curious.

Not that I know of. If you end up making one yourself, it might be worth posting in the Announce forum.

Hi all,

I played around with the idea and came up with a small dub package, that is not (yet) uploaded to the dub registry.
Source is available at https://github.com/gizmomogwai/packageinfo, feedback very welcome.

Kind regards,
Christian

June 28, 2022

On Monday, 27 June 2022 at 21:36:31 UTC, Christian Köstlin wrote:

>

I played around with the idea and came up with a small dub package, that is not (yet) uploaded to the dub registry.
Source is available at https://github.com/gizmomogwai/packageinfo, feedback very welcome.

I've done something similar not for licences but for code amount, to extract from a DUB project:

  • DUB packages used by project
  • source files used by project
  • and their LOC count

This is a D forums exclusive:
https://pastebin.com/RFbFCgR2

Keep your debt in check!

June 29, 2022

On 2022-06-28 14:34, Guillaume Piolat wrote:

>

On Monday, 27 June 2022 at 21:36:31 UTC, Christian Köstlin wrote:

>

I played around with the idea and came up with a small dub package, that is not (yet) uploaded to the dub registry.
Source is available at https://github.com/gizmomogwai/packageinfo, feedback very welcome.

I've done something similar not for licences but for code amount, to extract from a DUB project:
 - DUB packages used by project
 - source files used by project
 - and their LOC count

This is a D forums exclusive:
https://pastebin.com/RFbFCgR2

Keep your debt in check!

Interesting ... there is also dscanner that can count lines of code.
in another toy project of mine I create a dependency dot graph, might be good to collect all those things together ... there is also https://github.com/funkwerk/cogito that collect another metric of projects.