Why is `]add --preserve=all` still updating packages?

I have an environment where GPUArrays is already installed as an indirect dependency.
I want to make it available without triggering precompilation (which can be really slow sometimes).
But even with --preserve=all the package gets updated (and needing precompilation):

(NNvelocity) pkg> add --preserve=all GPUArrays                                                                                                                                                                                        
   Resolving package versions...                                                                                                                                                                                                      
    Updating `~/.julia/dev/NNvelocity/Project.toml`                                                                                                                                                                                   
  [0c68f7d7] + GPUArrays v11.5.4 [loaded: v11.4.1]                                                                                                                                                                                    
    Updating `~/.julia/dev/NNvelocity/Manifest-v1.12.toml`                                                                                                                                                                            
  [0c68f7d7] ↑ GPUArrays v11.4.1 β‡’ v11.5.4 [loaded: v11.4.1]                                                                                                                                                                          
P  βœ“ GPUArrays                                                                                                                                                                                                                        
  βœ“ GPUArrays β†’ JLD2Ext                                                 
...

Maybe I don’t know what preserve all means or it is a bug / misnomer? Thanks for any insights.

(Using julia 1.12.1)

1 Like