Dub for internal dependency management: Git repo as package supplier?
Jacob Carlborg
doob at me.com
Wed Jul 31 14:11:17 UTC 2019
On Wednesday, 31 July 2019 at 13:02:10 UTC, FeepingCreature wrote:
> We (Funkwerk) are currently using rake as a build system. Since
> rake does not offer package management, we have to list all
> transitive dependencies of every package, which is obviously
> not satisfactory. Because of this, we're looking into switching
> to dub and dub.selection.json as a "source of truth" for the
> used set of library dependencies.
>
> We're currently using git submodules for local dependencies. If
> they were migrated to dub, we'd run into the problem of what to
> do while working on a dependency. Often changes to a dependency
> only make sense in the context of the project that needs the
> dependency, so we have to be able to set dub to use the git
> branch that we're working on. However, while this can be made
> to work locally by using dub add-override to point dub at a
> folder that has the branch checked out, this cannot work on our
> Jenkins system because obviously that doesn't have the local
> folder.
A dependency can point to a local directory, including a cloned
git submodule. Have a look how I did that in the DLP project.
https://github.com/jacob-carlborg/dlp/blob/9982cd75ea347170b4f13fc259789df264bcd7b3/dub.sdl#L9
—
/Jacob Carlborg
More information about the Digitalmars-d
mailing list