dub icon indicating copy to clipboard operation
dub copied to clipboard

Dub says "Could not resolve configuration for package" for the wrong package

Open MrcSnm opened this issue 2 years ago • 0 comments

System information

  • dub version: DUB version 1.31.1, built on Mar 12 2023
  • OS Platform and distribution: Windows 10
  • compiler version LDC 1.32.0

Bug Description

Error Could not resolve configuration for package util. The actual configuration wrong is in bind, as it does not exists the configuration android for it. For checking, look at main dub.json (android cfg), you'll see the renderer with config android. Which has

"name": "android",
			"dependencies": {
				"gles" : {"path": "../../dependencies/gles", "version": "*"},
				"bind" : {"path": "../bind", "version": "*", "optional": true}
			},
			"subConfigurations": {
				"bind": "android",
				"windowing": "android"
			},

The bind package doesn't have a configuration called android, and somehow it fails in another package.

How to reproduce?

Clone https://github.com/MrcSnm/HipremeEngine/tree/123d59c7f5de87cc3227a0a39c2c78907ec6be09 dub -c android

Expected Behavior

"Could not resolve configuration for package bind" instead of util

Logs

MrcSnm avatar Apr 14 '23 12:04 MrcSnm