Skip to content

D recipe #3119

Description

@Aeronetek

Hi Dub Team. :)

I love it when a language’s package manager’s scripts are written in their respective language, and looking into Dub’s code I saw that it was well organized for such an enhancement to be easily made. Therefore, I thought I would ask if that is an enhancement you would like me to make.

My idea is:

  • First Compile:
    • compile ‘dub.d’ into a dynamic library.
    • load the dynamic library and load the ‘package’ function (more on that later).
    • hash and save the contents of ‘dub.d’ to a file.
  • Subsequent Compile:
    • load the ‘dub.d’ hash.
    • hash contents and compare with hash from file.
    • if the hash has changed, recompile ‘dub.d’.
    • load dynamic library and package function.
  • Package Function: the function to load and call from dub.d:
    void describe(ref PackageRecipe recipe){ … }

Thanks for reading :)
Aero-Applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions