]dev a standard library package

I want to make some changes to my local install of SuiteSparse.jl and in the REPL I do

]dev SuiteSparse

This create an image of the source code in ~/julia/dev/SuiteSparse that I can play with.

However, importing the module with using SuiteSparse and then checking pathof(SuiteSparse) does not load the this modified code but loads the version that comes with the julia source install in $JULIA_INSTALL_PREFIX/usr/share/julia/stdlib/v1.1/SuiteSparse/src/SuiteSparse.jl.

Is there a catch with ]dev-ing stdlib packages?

1 Like

This should work. But if you loaded SuiteSparse before pkg> dev'ing it, you have to restart Julia.

It would be nice if this just worked but it doesn’t. dev should probably error on stdlibs.

The reason it doesn’t work is the the stdlib is in the sysimg and when julia loads a package it checks if a package with that Uuid is already loaded. In that case it just uses the already loaded one.

A workaround is to include the main package file (e.g LibGit2.jl).

Another way is