dlang / dub

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

[Feature Request] - Pass a custom file as the dub.json #2684

Closed MrcSnm closed 1 year ago

MrcSnm commented 1 year ago

System information

Feature Description

Right now, dub only accepts directories. The only way to build a dub.json located in another directory is by using --root. The problem about this approach is that it still required a file to be named dub.json and the path will be relative to the root directory. I'm needing some way to pass a custom path for the dub.json and use the current directory as the cwd.

Expected Behavior

Logs

Geod24 commented 1 year ago

I'm needing some way to pass a custom path for the dub.json and use the current directory as the cwd.

What's your use case ?

MrcSnm commented 1 year ago

What's your use case ?

I'm separating some part of configurations in other folders for my program, the problem is that I'm unable to pass it while keeping a custom root directory. It all started by my need of unnamed dependencies, I have a meta dub program which outputs those unnamed dependencies, but I'm trying to keep at least the main program from not using this meta thing.

Geod24 commented 9 months ago

I still don't understand this use case. Why do you need unnamed dependencies ?

MrcSnm commented 9 months ago

I still don't understand this use case. Why do you need unnamed dependencies ?

Because my engine is a main program which imports the user package as a dependency when in the release process. I'm still using it and I believe it won't change anytime soon.