Skip to content

Commit

Permalink
Merge pull request #2833 from ibuclaw/merge_stable
Browse files Browse the repository at this point in the history
merge stable
  • Loading branch information
Geod24 authored Jan 28, 2024
2 parents ef0bf93 + d88326d commit fa26ee3
Show file tree
Hide file tree
Showing 34 changed files with 12 additions and 27 deletions.
2 changes: 1 addition & 1 deletion source/dub/packagemanager.d
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ package struct Location {

// Managed structure: $ROOT/$NAME/$VERSION/$NAME
// This is the most common code path
else if (mgr.isManagedPath(path)) {
else {
// Iterate over versions of a package
foreach (versdir; mgr.iterateDirectory(pack_path)) {
if (!versdir.isDirectory) continue;
Expand Down
2 changes: 1 addition & 1 deletion source/dub/version_.d
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
module dub.version_;
enum dubVersion = "v1.36.0-beta.1";
enum dubVersion = "v1.36.0-rc.1";
8 changes: 4 additions & 4 deletions test/issue1024-selective-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}/issue1024-selective-upgrade
echo "{\"fileVersion\": 1,\"versions\": {\"a\": \"1.0.0\", \"b\": \"1.0.0\"}}" > main/dub.selections.json
$DUB upgrade --bare --root=main a
echo "{\"fileVersion\": 1,\"versions\": {\"a\": \"1.0.0\", \"b\": \"1.0.0\"}}" > main/~master/main/dub.selections.json
$DUB upgrade --bare --root=main/~master/main/ a

if ! grep -c -e "\"a\": \"1.0.1\"" main/dub.selections.json; then
if ! grep -c -e "\"a\": \"1.0.1\"" main/~master/main/dub.selections.json; then
die $LINENO "Specified dependency was not upgraded."
fi

if grep -c -e "\"b\": \"1.0.1\"" main/dub.selections.json; then
if grep -c -e "\"b\": \"1.0.1\"" main/~master/main/dub.selections.json; then
die $LINENO "Non-specified dependency got upgraded."
fi
5 changes: 1 addition & 4 deletions test/issue564-invalid-upgrade-dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}/issue564-invalid-upgrade-dependency
rm -rf a-1.0.0/.dub
rm -rf a-1.1.0/.dub
rm -rf main/.dub
${DUB} build --bare --compiler=${DC} main
${DUB} build -f --bare --compiler=${DC} main

This file was deleted.

7 changes: 2 additions & 5 deletions test/issue813-pure-sub-dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}/issue813-pure-sub-dependency
rm -rf main/.dub
rm -rf sub/.dub
rm -rf sub/sub/.dub
rm -f main/dub.selections.json
${DUB} build --bare --compiler=${DC} main
rm -f main/~master/main/dub.selections.json
${DUB} build -f --bare --compiler=${DC} main
9 changes: 3 additions & 6 deletions test/issue923-subpackage-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}/issue923-subpackage-deps
rm -rf main/.dub
rm -rf a/.dub
rm -rf b/.dub
rm -f main/dub.selections.json
${DUB} build --bare --compiler=${DC} main
rm -f main/~master/main/dub.selections.json
${DUB} build -f --bare --compiler=${DC} main


if ! grep -c -e \"b\" main/dub.selections.json; then
if ! grep -c -e \"b\" main/~master/main/dub.selections.json; then
die $LINENO 'Dependency b not resolved.'
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fa26ee3

Please sign in to comment.