Is 2-arg Pkg.add broken then? You should be able to do Pkg.add, then
Pkg.pin to a specific version. Though if we're trying to support combining
this into a single step with 2-arg Pkg.add and that isn't working, we
should probably figure out why and try to fix it. For packages that run
code at install-time in deps/build.jl you might get different results from
the 2-step version with Pkg.pin vs a 1-step version.
On Saturday, September 5, 2015 at 12:03:28 PM UTC-7, Arthur Maciejewicz
wrote:
>
> From reading the docs, it seems the syntax to add a package of a certain
> version is:
>
> Pkg.add("PACKAGE_NAME", v"0.x.x")
>
> but that only installs the latest package. Trying to manually clone and
> install checks out master even if I switch to a particular branch.
> Does anyone know the proper way to go about this?
>
> I'm using julia version 0.4.0-pre
>