On 2018-08-03 21:41, Bastiaan Veelo wrote:

But if you commit it, and a compiler deprecation causes a dependency in
that pinned version to fail to compile, then your app won't compile
either, even though your code itself does not suffer from the
deprecation and even though a newer release of the dependency is
available that solves the deprecations. This means that, if your app is
on code.dlang.org, people won't be able to dub fetch && dub run.

What advantages does committing dub.selections.json have that outweigh
this disadvantage?

The advantage is you get the same application every time, now and six months later. If the dependencies are not pinned you might get updated dependencies that break your build, or even worse, the build passes but the application behaves differently.

--
/Jacob Carlborg

Reply via email to