dlang-tour / core

D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
Boost Software License 1.0
117 stars 47 forks source link

how to update fixed package versions from the `Add library +` button ? #729

Open 9il opened 5 years ago

9il commented 5 years ago

When a user adds the mir-algorithm library, mir-algorithm 3.4.4 will be added. Ideally is to replace them with *.

PetarKirov commented 5 years ago

The list of installed packages in the docker image is obtained dynamically here: https://github.com/dlang-tour/core/blob/9014e140e5006a6e58400924c8a4729a5cd43db7/source/exec/docker.d#L190 Everytime a new Docker image is built we fetch the newest available packages. Showing arbitrary versions however is not a good idea, since the user will expect them to work, while only a version per package is actually installed.

9il commented 5 years ago

Agreed. I mean "Add library" button at run.dlang.io. It has a fixed package version. Instead, it would be more sensitive to add "*". I couldn't find where 3.4.4 is hardcoded.

image

wilzbach commented 5 years ago

Here:

https://github.com/dlang-tour/core/blob/9014e140e5006a6e58400924c8a4729a5cd43db7/public/static/js/tour-controller.js#L409