Pkg.jl: Tilde semver misinterpreted?

Created on 20 Oct 2018  路  5Comments  路  Source: JuliaLang/Pkg.jl

Not sure if this is a documentation or an implementation issue but the docs for Pkg say that ~1.2.3 = [1.2.3, 1.2.4), whereas

julia> Pkg.Types.semver_spec("~1.2.3")
VersionSpec("1.2.3-1.2")

where, as far as I can tell, VersionSpec("1.2.3-1.2") = [1.2.3, 1.3.0).

documentation

Most helpful comment

It also seem rather useless to specify that "I allow updating to the next bugfix release, but not the one after that" so I think the implemented behavior makes sense.

All 5 comments

I think this is a doc issue. I am pretty sure we should mirror cargo here so it should allow updates up to the next minor release, see https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#tilde-requirements.

It also seem rather useless to specify that "I allow updating to the next bugfix release, but not the one after that" so I think the implemented behavior makes sense.

Not sure why GitHub did not autoclosed this, but fixed by #850

I think it only works if you write fix #bla in the description, not the title?

Its in the commit message

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dpsanders picture dpsanders  路  3Comments

cscherrer picture cscherrer  路  3Comments

innerlee picture innerlee  路  4Comments

KristofferC picture KristofferC  路  4Comments

cossio picture cossio  路  3Comments