devonfw / ide

Tool to automate setup and update of development environment (esp. for Java projects).
Apache License 2.0
33 stars 102 forks source link

Download Cache not working with latest version #1293

Open tobka777 opened 11 months ago

tobka777 commented 11 months ago

Expected behavior

As a tool user, I want to have every time the latest version so that I can work with the newest features.

Actual behavior

We have a "Download Cache" for devonfw-ide. For this we download tools and put them under ~/Downloads/devonfw-ide/«tool»-«version»[-«edition»].«extension».

We sometimes have as «version» simply latest and this means semantically that it is the latest version. But this does not make the filename and the file content permanently stable. So in this case it is wrong that if the file already exists, we don't re-download it.

In other words: We are not allowed to use latest as version, but we have to solve the updater problems. Our scripts must then resolve something like latest to the correct version and then download that specifically to a file with the version on it. This concerns at least pip and docker-desktop.

Related/Dependent Issues

Affected version:

hohwille commented 11 months ago

So doDownload should not save or reuse latest version in download cache folder. For docker, I have created the separate story #1317 to improve the UrlUpdater.