dub icon indicating copy to clipboard operation
dub copied to clipboard

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

Open CyberShadow opened this issue 2 years ago • 2 comments

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 avatar May 10 '23 09:05 CyberShadow

@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.

CyberShadow avatar Jul 10 '24 07:07 CyberShadow

Yeah we should probably relax limitations around this.

Geod24 avatar Jul 10 '24 07:07 Geod24