dlang-tour / core

D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

9il opened this issue · comments

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

The list of installed packages in the docker image is obtained dynamically here:

Package[] installedPackages()

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.

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

Here:

if (!($scope.sourceCode.indexOf("dub.sdl:") >= 0 || $scope.sourceCode.indexOf("dub.json:") >= 0)) {