dlang / dub

Package and build management system for D
MIT License
677 stars 227 forks source link

Regression / AssertError in cacheArtifactPath #2855

Open WebFreak001 opened 9 months ago

WebFreak001 commented 9 months ago

https://github.com/dlang/dub/blame/5f4ea8e18d1e0da2d50b35a5c75e70ccacc80743/source/dub/generators/targetdescription.d#L50

triggers this error when running a TargetDescriptionGenerator on a package with targetType sourceLibrary:

core.exception.AssertError@../../../.dub/packages/dub/1.36.0/dub/source/dub/internal/vibecompat/inet/path.d(238): Cannot append empty path string.
----------------
??:? _d_assert_msg [0x55d7a83b8e98]
../../../.dub/packages/dub/1.36.0/dub/source/dub/internal/vibecompat/inet/path.d:238 const dub.internal.vibecompat.inet.path.NativePath dub.internal.vibecompat.inet.path.NativePath.opBinary!("~").opBinary(immutable(char)[]) [0x55d7a80a7f87]
../../../.dub/packages/dub/1.36.0/dub/source/dub/generators/targetdescription.d:50 void dub.generators.targetdescription.TargetDescriptionGenerator.generateTargets(dub.generators.generator.GeneratorSettings, in dub.generators.generator.ProjectGenerator.TargetInfo[immutable(char)[]]).visitTargetRec(immutable(char)[]) [0x55d7a80601ca]
../../../.dub/packages/dub/1.36.0/dub/source/dub/generators/targetdescription.d:68 void dub.generators.targetdescription.TargetDescriptionGenerator.generateTargets(dub.generators.generator.GeneratorSettings, in dub.generators.generator.ProjectGenerator.TargetInfo[immutable(char)[]]) [0x55d7a805ff0e]
../../../.dub/packages/dub/1.36.0/dub/source/dub/generators/generator.d:185 void dub.generators.generator.ProjectGenerator.generate(dub.generators.generator.GeneratorSettings) [0x55d7a80532ad]
../../workspace-d/source/workspaced/com/dub.d:237 bool workspaced.com.dub.DubComponent.updateImportPaths(bool) [0x55d7a7c3d8ce]
../../workspace-d/source/workspaced/com/dub.d:94 void workspaced.com.dub.DubComponent.load() [0x55d7a7c3cace]