Look up `dub.selections.json` files in parent directories too (#2272)
...
* Look up `dub.selections.json` files in parent directories too
In case the root package directory doesn't contain a `dub.selections.json`
file, look in parent directories too and load the first (deepest) one.
This allows using a 'central' `dub.selections.json` file for a repository
containing multiple dub projects, making it automatically apply to all
builds in that source tree if located in the repository root directory
(unless a local `dub.selections.json` overrides it).
Such an 'inherited' selections file is never mutated when running dub for
a nested project, i.e., changes are always saved to a *local*
`dub.selections.json` file.
Martin Kinkelin
authored
on 18 Jun
GitHub
committed
on 18 Jun