PkgHelpers provides the functions freeze()
and lower_bound()
to update your Project.toml file and freeze or lower_bound your direct dependencies.
New:
- the new entries in
Project.toml
are sorted - the parameter
copy_manifest
allows to
create a copy of your manifest file under
a distinct name wich documents also the
versions of your indirect dependencies - PkgHelpers works now with Julia 1.4 to 1.11
Usage:
- add PkgHelpers to your global environment
- in your local project type
using Pkg, PkgHelpers
freeze(Pkg, copy_manifest=true)
freeze(Pkg; julia="~1.9, ~1.10", copy_manifest=true)
The following options are available:
function | compat entry | range | specifier |
---|---|---|---|
freeze(Pkg) | “=1.2.3” | [1.2.3, 1.2.3] | equality |
freeze(Pkg; relax=true) | “~1.2.3” | [1.2.3, 1.3.0) | tilde |
lower_bound(Pkg) | “1.2.3” | [1.2.3, 2.0.0) | caret |
lower_bound(Pkg; relax=true) | “1.2” | [1.2.0, 2.0.0) | caret |
In contrast to the approach of committing the Manifest directly to git, this approach allows to work from multiple computers on one project using different versions of Julia on different operating systems without getting any merge conflicts.