diff --git a/changelog/custom-dub-init-type.dd b/changelog/custom-dub-init-type.dd deleted file mode 100644 index fff1b29..0000000 --- a/changelog/custom-dub-init-type.dd +++ /dev/null @@ -1,10 +0,0 @@ -Support of custom dub init type - -Command dub init now supports custom dub packages for argument `-t`. -$(CONSOLE -> dub init -n myPackage --format sdl -t custom-dub-init-dubpackage -- --foo=bar -) - -Dub init will be invoked like before. The package `custom-dub-init-dubpackage` -contains a sub package `init-exec` which will be invoked afterwards to create a custom -package skeleton. Additional arguments could be passed e.g. `-- --foo=bar`. diff --git a/changelog/dmd-mscoff-default.dd b/changelog/dmd-mscoff-default.dd deleted file mode 100644 index 5fc0c11..0000000 --- a/changelog/dmd-mscoff-default.dd +++ /dev/null @@ -1,16 +0,0 @@ -DUB will no longer use OPTLINK as default on Windows - -DMD's $(LINK2 https://digitalmars.com/ctg/optlink.html, OPTLINK) has many limitations. Apart from long-standing issues in the underlying DigitalMars runtime, -the maximum number of symbols is limited as well, which is why most big DUB -libraries can't be compiled with OPTLINK for years. This has been a cause of -grief and pain for many users and impacted the newcomer experience severly. - -With this release, `dub` will no longer use `OPTLINK` as default on Windows, but -use `-m32mscoff` (MSCOFF) on 32-bit Windows systems and `-m64` (MSCOFF) on 64-bit -Windows. - -Users can still manually instruct `dub` to use OPTLINK with the `--arch=x86` switch of `dub`: - -$(CONSOLE -> dub --arch=x86 -) diff --git a/changelog/dub-run.dd b/changelog/dub-run.dd deleted file mode 100644 index 9435f2e..0000000 --- a/changelog/dub-run.dd +++ /dev/null @@ -1,52 +0,0 @@ -`dub run` will now automatically fetch a package if it's not found locally - -Starting with this release, `dub run ` makes sure that the package is available locally. -This means that now a `dub fetch ` is no longer required and all a user of a library needs to run your dub package is `dub run`: - -$(CONSOLE -> dub run gitcompatibledubpackage -gitcompatibledubpackage wasn't found locally, but it's available online: -‐-- -Description: Example of a DUB package also usable as git submodule. For DUB test suite. -Version: 1.0.4 -‐-- -Do you want to fetch gitcompatibledubpackage? [Y/n]: -) - -An optional `--yes` (`-y`) flag is provided to confirm fetching non-interactively: - -$(CONSOLE -> dub run --yes gitcompatibledubpackage -gitcompatibledubpackage wasn't found locally, but it's available online: -‐-- -Description: Example of a DUB package also usable as git submodule. For DUB test suite. -Version: 1.0.4 -‐-- -Fetching gitcompatibledubpackage 1.0.4... -Building package gitcompatibledubpackage in /home/seb/.dub/packages/gitcompatibledubpackage-1.0.4/gitcompatibledubpackage/ -Performing "debug" build using dmd for x86_64. -gitcompatibledubpackage 1.0.4: building configuration "exe"... -Linking... -Running ../../.dub/packages/gitcompatibledubpackage-1.0.4/gitcompatibledubpackage/gitcompatibledubpackage -Hello DUB -) - -An optional `--non-interactive` (`-n`) flag is provided to skip searching online packages: - -$(CONSOLE -> dub run --non-interactive gitcompatibledubpackage -Failed to find a package named 'gitcompatibledubpackage'. -) - -If one wants to run a specific version of a package, it can be passed to `dub run` too: - -$(CONSOLE -> dub run gitcompatibledubpackage@1.0.3 -Fetching gitcompatibledubpackage 1.0.3... -Building package gitcompatibledubpackage in /home/seb/.dub/packages/gitcompatibledubpackage-1.0.3/gitcompatibledubpackage/ -Performing "debug" build using dmd for x86_64. -gitcompatibledubpackage 1.0.3: building configuration "exe"... -Linking... -Running ../../.dub/packages/gitcompatibledubpackage-1.0.3/gitcompatibledubpackage/gitcompatibledubpackage -Hello DUB -) diff --git a/changelog/remove-dub-list-installed.dd b/changelog/remove-dub-list-installed.dd deleted file mode 100644 index 83a1639..0000000 --- a/changelog/remove-dub-list-installed.dd +++ /dev/null @@ -1,3 +0,0 @@ -Remove `dub list-installed` command - -`dub list-installed` command was deprecated and renamed to `list` at $(LINK2 https://github.com/dlang/dub/pull/150, in 2013). diff --git a/changelog/single-api-requests.dd b/changelog/single-api-requests.dd deleted file mode 100644 index a8b15a3..0000000 --- a/changelog/single-api-requests.dd +++ /dev/null @@ -1,4 +0,0 @@ -DUB uses single API requests to upgrade/resolve dependencies. - -`dub` now uses single API request to upgrade/resolve dependencies. -For more details, see $(LINK2 https://github.com/dlang/dub/pull/1366, pull #1366). diff --git a/source/dub/commandline.d b/source/dub/commandline.d index d49a6e7..738f30c 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -896,8 +896,8 @@ // the user provided a version manually dep = Dependency(packageParts.version_); } else { - const pack = dub.packageManager.getFirstPackage(packageParts.name); - if (pack) + if (packageParts.name.startsWith(":") || + dub.packageManager.getFirstPackage(packageParts.name)) // found locally return 0; diff --git a/source/dub/version_.d b/source/dub/version_.d index e5c33b2..674ebd8 100644 --- a/source/dub/version_.d +++ b/source/dub/version_.d @@ -1,2 +1,2 @@ module dub.version_; -enum dubVersion = "v1.15.0-rc.2"; +enum dubVersion = "v1.15.0"; diff --git a/test/issue1691-build-subpkg.sh b/test/issue1691-build-subpkg.sh new file mode 100755 index 0000000..ea70068 --- /dev/null +++ b/test/issue1691-build-subpkg.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +. $(dirname "${BASH_SOURCE[0]}")/common.sh +$DUB build --root="$CURR_DIR/issue1691-build-subpkg" :subpkg diff --git a/test/issue1691-build-subpkg/.gitignore b/test/issue1691-build-subpkg/.gitignore new file mode 100644 index 0000000..1ba3960 --- /dev/null +++ b/test/issue1691-build-subpkg/.gitignore @@ -0,0 +1,15 @@ +.dub +docs.json +__dummy.html +docs/ +/issue1691-build-subpkg +issue1691-build-subpkg.so +issue1691-build-subpkg.dylib +issue1691-build-subpkg.dll +issue1691-build-subpkg.a +issue1691-build-subpkg.lib +issue1691-build-subpkg-test-* +*.exe +*.o +*.obj +*.lst diff --git a/test/issue1691-build-subpkg/.no_build b/test/issue1691-build-subpkg/.no_build new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/issue1691-build-subpkg/.no_build diff --git a/test/issue1691-build-subpkg/dub.sdl b/test/issue1691-build-subpkg/dub.sdl new file mode 100644 index 0000000..e7ab799 --- /dev/null +++ b/test/issue1691-build-subpkg/dub.sdl @@ -0,0 +1,3 @@ +name "issue1691-build-subpkg" +dependency ":subpkg" version="*" +subPackage "./subpkg/" diff --git a/test/issue1691-build-subpkg/source/app.d b/test/issue1691-build-subpkg/source/app.d new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/issue1691-build-subpkg/source/app.d diff --git a/test/issue1691-build-subpkg/subpkg/dub.sdl b/test/issue1691-build-subpkg/subpkg/dub.sdl new file mode 100644 index 0000000..25c3c2a --- /dev/null +++ b/test/issue1691-build-subpkg/subpkg/dub.sdl @@ -0,0 +1 @@ +name "subpkg" diff --git a/test/issue1691-build-subpkg/subpkg/source/subpkg.d b/test/issue1691-build-subpkg/subpkg/source/subpkg.d new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/issue1691-build-subpkg/subpkg/source/subpkg.d