Check package version

How can I test, whether a package is on #master?

Pkg.API.installed()[name] no longer contains a ‘+’ to indicate this. Pkg.API.status(name) only displays (prints) the version information, but doesn’t return anything.

There is currently no stable API for this. There is an experimental API which should make it into 1.4 (you can find some preliminary docs here: https://julialang.github.io/Pkg.jl/dev/api/#Pkg.dependencies). In the meantime, parsing the manifest file directly should work well enough.

1 Like