Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Feb 13, 2024
1 parent 5a7098c commit 59be1bc
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 28 deletions.
29 changes: 15 additions & 14 deletions dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
"botan-math": "1.0.3",
"cachetools": "0.4.1",
"dcd": "0.16.0-beta.2",
"dfmt": "0.15.0",
"dfmt": "0.15.1",
"diet-complete": "0.0.3",
"diet-ng": "1.8.1",
"dscanner": "0.16.0-beta.2",
"dub": "1.33.1",
"dscanner": "0.16.0-beta.4",
"dub": "1.36.0",
"emsi_containers": "0.9.0",
"eventcore": "0.9.25",
"eventcore": "0.9.28",
"fuzzymatch": "1.0.0",
"inifiled": "1.3.3",
"isfreedesktop": "0.1.1",
"libasync": "0.8.6",
"libddoc": "0.8.0",
"libdparse": "0.23.2",
"memutils": "1.0.9",
"mir-algorithm": "3.20.4",
"mir-core": "1.5.5",
"mir-cpuid": "1.2.10",
"mir-ion": "2.1.8",
"memutils": "1.0.10",
"mir-algorithm": "3.21.0",
"mir-core": "1.7.0",
"mir-cpuid": "1.2.11",
"mir-ion": "2.2.1",
"mir-linux-kernel": "1.0.1",
"msgpack-d": "1.0.4",
"openssl": "3.3.0",
"msgpack-d": "1.0.5",
"openssl": "3.3.3",
"openssl-static": "1.0.2+3.0.8",
"requests": "2.1.2",
"requests": "2.1.3",
"rm-rf": "0.1.0",
"sdlfmt": "0.1.1",
"sdlite": "1.1.2",
Expand All @@ -38,8 +38,9 @@
"taggedalgebraic": "0.11.22",
"test_allocator": "0.3.4",
"unit-threaded": "0.10.8",
"vibe-core": "2.2.0",
"vibe-d": "0.9.6",
"vibe-container": "1.1.0",
"vibe-core": "2.7.4",
"vibe-d": "0.9.7",
"xdgpaths": "0.2.5"
}
}
5 changes: 1 addition & 4 deletions workspace-d/dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ license "MIT"
dependency "dfmt" version="~>0.15.0"
dependency "inifiled" version="1.3.3"
dependency "serve-d:dcd" path=".."
# we can't upgrade to 1.34.0 yet! PR https://github.com/dlang/dub/pull/2703 must
# be merged first to avoid a regression with building that cannot stabily be
# fixed without hardcoding DUB paths into the code here.
dependency "dub" version="1.33.1"
dependency "dub" version="~>1.36.0"
dependency "emsi_containers" version="0.9.0"
dependency "dscanner" version="~>0.16.0-beta.1"
dependency "libdparse" version="~>0.23.0"
Expand Down
12 changes: 6 additions & 6 deletions workspace-d/dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"fileVersion": 1,
"versions": {
"dcd": "0.16.0-beta.2",
"dfmt": "0.15.0",
"dscanner": "0.16.0-beta.2",
"dub": "1.33.1",
"dfmt": "0.15.1",
"dscanner": "0.16.0-beta.4",
"dub": "1.36.0",
"emsi_containers": "0.9.0",
"inifiled": "1.3.3",
"isfreedesktop": "0.1.1",
"libddoc": "0.8.0",
"libdparse": "0.23.2",
"mir-algorithm": "3.20.4",
"mir-core": "1.5.5",
"msgpack-d": "1.0.4",
"mir-algorithm": "3.21.0",
"mir-core": "1.7.0",
"msgpack-d": "1.0.5",
"serve-d": {"path":".."},
"silly": "1.1.1",
"standardpaths": "0.8.2",
Expand Down
23 changes: 19 additions & 4 deletions workspace-d/source/workspaced/com/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class DubComponent : ComponentWrapper
{
trace("Starting dub on instance ", refInstance ? refInstance.cwd : "(global)");
_dubRunning = false;
_dub = new Dub(instance.cwd, null, SkipPackageSuppliers.none);
_dub = new ServedDub(instance.cwd);
_dub.packageManager.getOrLoadPackage(NativePath(instance.cwd));
_dub.loadPackage();
_dub.project.validate();
Expand Down Expand Up @@ -216,7 +216,7 @@ class DubComponent : ComponentWrapper
if (restartDub)
restart();

GeneratorSettings settings;
GeneratorSettings settings = _dub.baseGeneratorSettings;
settings.platform = _platform;
settings.config = _configuration;
settings.buildType = _buildType;
Expand Down Expand Up @@ -712,7 +712,7 @@ class DubComponent : ComponentWrapper

string cwd = instance.cwd;

GeneratorSettings settings;
GeneratorSettings settings = _dub.baseGeneratorSettings;
settings.platform = buildPlatform;
settings.config = _configuration;
settings.buildType = _buildType;
Expand Down Expand Up @@ -814,7 +814,7 @@ class DubComponent : ComponentWrapper
}

private:
Dub _dub;
ServedDub _dub;
bool _dubRunning = false;
string _configuration;
string _archType = "";
Expand Down Expand Up @@ -1028,3 +1028,18 @@ struct ArchType
/// UI label override or null if none
string label;
}

class ServedDub : Dub
{
this(string root_path = ".")
{
super(root_path, null, SkipPackageSuppliers.none);
}

GeneratorSettings baseGeneratorSettings() const @safe pure nothrow @nogc
{
GeneratorSettings s;
s.cache = this.m_dirs.cache;
return s;
}
}

0 comments on commit 59be1bc

Please sign in to comment.