Fix #2691: Use same structure for managed and unmanaged path
Currently, we issue a warning asking people to migrate, but the migrated
path is not actually recognized. It was suggested in the issue to ignore
this warning for add-path. However, as add-path is a rather low-level
use, I think it is better to impose the same condition for managed and
unmanaged path, in order to be able to provide the same guarantees.
For example, once we move to reading version from the path,
we can provide the same speedups for add-path users.
We can also make sure that add-path users don't have surprises when
dealing with packages that expect a certain structure outside their
directory, such as arsd and ae.
Some tests were updated with the new path, however, as many will likely
be rewritten with the new test framework, and a lot of tests are affected,
not all of them were updated, providing coverage for the old and new
code alike.
1 parent 662f68b commit 1a5304954863df948548b02c1b5fe3123bb1cdfc
@Mathias Lang Mathias Lang authored on 8 Jan 2024
Mathias LANG committed on 10 Jan 2024
Showing 60 changed files
View
source/dub/packagemanager.d
View
test/issue1005-configuration-resolution/a/1.0.0/a/dub.sdl 0 → 100644
View
test/issue1005-configuration-resolution/a/dub.sdl 100644 → 0
View
test/issue1005-configuration-resolution/b/1.0.0/b/dub.sdl 0 → 100644
View
test/issue1005-configuration-resolution/b/1.0.0/b/source/b.d 0 → 100644
View
test/issue1005-configuration-resolution/b/dub.sdl 100644 → 0
View
test/issue1005-configuration-resolution/b/source/b.d 100644 → 0
View
test/issue1005-configuration-resolution/c/1.0.0/c/dub.sdl 0 → 100644
View
test/issue1005-configuration-resolution/c/dub.sdl 100644 → 0
View
test/issue1005-configuration-resolution/main/dub.sdl 100644 → 0
View
test/issue1005-configuration-resolution/main/source/app.d 100644 → 0
View
test/issue1005-configuration-resolution/main/~master/main/dub.sdl 0 → 100644
View
test/issue1005-configuration-resolution/main/~master/main/source/app.d 0 → 100644
View
test/issue1024-selective-upgrade.sh
View
test/issue1024-selective-upgrade/a-1.0.0/dub.sdl 100644 → 0
View
test/issue1024-selective-upgrade/a-1.0.1/dub.sdl 100644 → 0
View
test/issue1024-selective-upgrade/a/1.0.0/a/dub.sdl 0 → 100644
View
test/issue1024-selective-upgrade/a/1.0.1/a/dub.sdl 0 → 100644
View
test/issue1024-selective-upgrade/b-1.0.0/dub.sdl 100644 → 0
View
test/issue1024-selective-upgrade/b-1.0.1/dub.sdl 100644 → 0
View
test/issue1024-selective-upgrade/b/1.0.0/b/dub.sdl 0 → 100644
View
test/issue1024-selective-upgrade/b/1.0.1/b/dub.sdl 0 → 100644
View
test/issue1024-selective-upgrade/main/dub.sdl 100644 → 0
View
test/issue1024-selective-upgrade/main/~master/main/dub.sdl 0 → 100644
View
test/issue564-invalid-upgrade-dependency.sh
View
test/issue564-invalid-upgrade-dependency/a-1.0.0/dub.json 100644 → 0
View
test/issue564-invalid-upgrade-dependency/a-1.0.0/source/a.d 100644 → 0
View
test/issue564-invalid-upgrade-dependency/a-1.1.0/dub.json 100644 → 0
View
test/issue564-invalid-upgrade-dependency/a-1.1.0/source/a.d 100644 → 0
View
test/issue564-invalid-upgrade-dependency/a/1.0.0/a/dub.json 0 → 100644
View
test/issue564-invalid-upgrade-dependency/a/1.0.0/a/source/a.d 0 → 100644
View
test/issue564-invalid-upgrade-dependency/a/1.1.0/a/dub.json 0 → 100644
View
test/issue564-invalid-upgrade-dependency/a/1.1.0/a/source/a.d 0 → 100644
View
test/issue564-invalid-upgrade-dependency/main/dub.json 100644 → 0
View
test/issue564-invalid-upgrade-dependency/main/dub.selections.json 100644 → 0
View
test/issue564-invalid-upgrade-dependency/main/source/app.d 100644 → 0
View
test/issue564-invalid-upgrade-dependency/main/~master/main/dub.json 0 → 100644
View
test/issue564-invalid-upgrade-dependency/main/~master/main/source/app.d 0 → 100644
View
test/issue813-pure-sub-dependency.sh
View
test/issue813-pure-sub-dependency/main/dub.sdl 100644 → 0
View
test/issue813-pure-sub-dependency/main/src/app.d 100644 → 0
View
test/issue813-pure-sub-dependency/main/~master/main/dub.sdl 0 → 100644
View
test/issue813-pure-sub-dependency/main/~master/main/src/app.d 0 → 100644
View
test/issue813-pure-sub-dependency/sub/dub.sdl 100644 → 0
View
test/issue813-pure-sub-dependency/sub/sub/dub.sdl 100644 → 0
View
test/issue813-pure-sub-dependency/sub/sub/src/sub/test.d 100644 → 0
View
test/issue813-pure-sub-dependency/sub/~master/sub/dub.sdl 0 → 100644
View
test/issue813-pure-sub-dependency/sub/~master/sub/sub/dub.sdl 0 → 100644
View
test/issue813-pure-sub-dependency/sub/~master/sub/sub/src/sub/test.d 0 → 100644
View
test/issue923-subpackage-deps.sh
View
test/issue923-subpackage-deps/a/1.0.0/a/dub.sdl 0 → 100644
View
test/issue923-subpackage-deps/a/dub.sdl 100644 → 0
View
test/issue923-subpackage-deps/b/1.0.0/b/dub.sdl 0 → 100644
View
test/issue923-subpackage-deps/b/1.0.0/b/source/b.d 0 → 100644
View
test/issue923-subpackage-deps/b/dub.sdl 100644 → 0
View
test/issue923-subpackage-deps/b/source/b.d 100644 → 0
View
test/issue923-subpackage-deps/main/dub.sdl 100644 → 0
View
test/issue923-subpackage-deps/main/source/app.d 100644 → 0
View
test/issue923-subpackage-deps/main/~master/main/dub.sdl 0 → 100644
View
test/issue923-subpackage-deps/main/~master/main/source/app.d 0 → 100644