beacon-biosignals / StableHashTraits.jl

Compute hashes over any Julia object simply and reproducibly
MIT License
7 stars 1 forks source link

Package cannot be installed #48

Closed dmbates closed 8 months ago

dmbates commented 8 months ago

I'm not sure what is causing this but as of this morning I get

% julia   
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.0 (2023-12-25)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.10) pkg> activate --temp
  Activating new project at `/var/folders/d9/t94kd5m50rl1r3bchncn62sm0000gn/T/jl_H8lZjI`

(jl_H8lZjI) pkg> add StableHashTraits
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package StableHashTraits [c5dd0088]:
 StableHashTraits [c5dd0088] log:
 ├─possible versions are: 0.1.1-1.1.4 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions: 0.1.1-1.1.4
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left
haberdashPI commented 8 months ago

Sorry for the confusion here.

The underlying cause of this is that hashes are broken on 1.10. There is a fix pending in #43, but the change to mark older versions as not supporting 1.10 (https://github.com/JuliaRegistries/General/pull/98962) got merged before #43, and so this prevents hash traits from being installed on 1.10. While this is arguably correct (there is a bug that comes up in 1.10), that was causing some real grief downstream; https://github.com/JuliaRegistries/General/pull/98962 has now been reverted, and StableHashTraits should install "properly" on 1.10 (but still has the bug!!! This will mostly just lead to cache misses, as it is used in Makie.jl to cache some computations).

Once #43 merges (today!) there were then be a (properly) working version for 1.10 and I will mark the older versions of StableHashTraits as incompatible with 1.10 in a new PR to the general registry.

dmbates commented 8 months ago

Thanks for the explanation and for the fix.