I have a small package, that creates a simple version information
module. It is similar to https://github.com/Abscissa/gen-package-version
but much simpler.
I want to add versions with this automatically to my programs and
libraries. For that I add preGenerateCommands "dub run packageversion --
--packageName=colored" to a library package or similar to an executable
For the library package everything is fine.
But if I reference e.g. the colored library from my executable, the
library is built when compiling the executable, which also generates the
version information, but, the version information is the one from the
Could someone explain if there is a way to work around this?
Thanks in advance,