The main goal here is to reduce the number of rebuilds due to unused version identifiers affecting the build cache id (hash, e.g. libevent-debug-linux.posix-x86_64-dmd_2077-2F8A3B95930E1DCE2CC7D043E90AE821).
Dub could grep the package source code for version\s*(\([^)]*\)) to infer the list of used version identifiers.
We could add a boolean option usesVersionIdentifiersInMixins that defaults to true, and only apply such an optimization when it's set to false.
The main goal here is to reduce the number of rebuilds due to unused version identifiers affecting the build cache id (hash, e.g.
libevent-debug-linux.posix-x86_64-dmd_2077-2F8A3B95930E1DCE2CC7D043E90AE821
). Dub could grep the package source code forversion\s*(\([^)]*\))
to infer the list of used version identifiers. We could add a boolean optionusesVersionIdentifiersInMixins
that defaults to true, and only apply such an optimization when it's set to false.