fractal-analytics-platform / fractal-server

Fractal backend
https://fractal-analytics-platform.github.io/fractal-server/
BSD 3-Clause "New" or "Revised" License
11 stars 3 forks source link

Always query pypi for correct version #1898

Open tcompa opened 3 hours ago

tcompa commented 3 hours ago

The original observation was that sometimes we end up with invalid-semver versions in fractal-web, like 1.3 - cc @zonia3000

tcompa commented 3 hours ago

Note that this is necessary, because of this scenario:

  1. User collects fractal-tasks-core 1.3, which implicitly leads to 1.3.4.
  2. User uses tasks with actual version 1.3.4, labeled as 1.3 - this is wrong.
  3. Comparison with v1.3.2 says that 1.3 is older, but the actual v1.3.4 is more recent - this is wrong.
  4. User collects fractal-tasks-core 1.3.4 and collection goes through - this is wrong.