dlang / dub

Package and build management system for D
MIT License
672 stars 230 forks source link

ignore unused version identifiers when computing build cache id #1312

Open MartinNowak opened 6 years ago

MartinNowak commented 6 years ago

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.

andre2007 commented 5 years ago

@MartinNowak is this issue solved with your pull request or is something still open?

Geod24 commented 4 years ago

Ping @MartinNowak . PR in question is https://github.com/dlang/dub/pull/1589