dlang / dub

Package and build management system for D
MIT License
673 stars 230 forks source link

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

Open MrcSnm opened 1 year ago

MrcSnm commented 1 year ago

System information

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