On Sunday, 17 January 2016 at 11:21:41 UTC, Russel Winder wrote:
Dub has a "run" capability, but apparently no "install" one. Also it appears to leave compilation products inside the ~/.dub directory.

Go puts compiled executables into $GOPATH/bin or $GOBIN and packages in $GOPATH/pkg which separates nicely downloaded repository clones from compilation products.

Cargo puts compilation products into the using project tree and not the ~/.cargo tree.

For me, wanting to use ~/.dub, with three different architectures, having compilation products in that directory is a bad idea. Whilst go and cargo have different solutions to this, both are better than what
dub currently appears to do. Unless I am missing something…

dub should be using the $XDG_CACHE_HOME/dub (or $HOME/.cache/dub if it's not set) for storing build files to abide by XDG standards.

Reply via email to