Set output location for dub --single

Chris Piker chris at hoopjump.com
Mon Feb 28 18:55:32 UTC 2022


On Monday, 28 February 2022 at 08:03:24 UTC, Basile B. wrote:
>
> That 's not exactly what you ask for but you can define the 
> path in the embedded recipe (targetPath)
>
> ```d
> #!/usr/bin/env dub
> /+ dub.sdl:
>    dependency "mypackage" version="*" path=".."
>    targetPath "./bin"
> +/
> ```

Hey thanks!  Not perfect, but it'll probably work.

I'll bring up the idea of overriding some settings (such as 
targetPath) on the command line in a similar manner to ssh in the 
dub [discussions](https://github.com/dlang/dub/discussions) area 
and see how well that goes over.


More information about the Digitalmars-d-learn mailing list