Make Pkg.undo work accross sessions

I use this shell function to easily install Julia packages:

jins () {
    julia --startup-file=no -e 'using Pkg; Pkg.add("'"$1"'"); Pkg.precompile()'
}

So when something goes wrong, I can’t use Pkg.undo() and get:

ERROR: undo: no more states left

Is this a feature request? It would be quite a substantial change. I would suggest using version control if you need longer term rollback of project and manifest files.

2 Likes

I agree that version control is the right place for this and Pkg should not duplicate that functionality, but maybe the docstring of undo could suggest this explicitly.

1 Like