dlang / dub

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

"Single-file packages are not allowed to specify source files." #2638

Open CyberShadow opened 1 year ago

CyberShadow commented 1 year ago

Any reason for this limitation?

One use case is a directory containing a bunch of small programs, some of which have reusable parts and thus are in shared modules.

What would break if this limitation were to be removed?

CyberShadow commented 4 months ago

@Geod24 Hi, what do you think - is there anything that prevents this from working in principle (caching, etc?)?

I think it would be useful for use cases where D is used as a Bash replacement. Then, Dub could be "the new rdmd", with the added ability to use published packages. Currently, there is only a partial overlap.

BTW, I've discovered a dirty workaround: add dflags "-i" to the inline recipe.

Geod24 commented 4 months ago

Yeah we should probably relax limitations around this.