Confusion about version control under Pkg3

I am developing a package, which lives in a git repository and working on upgrading to 0.7. There are two kinds of “versions” associated with packages:

  1. The version one assigns in a Project.toml file
  2. The version contained in a git tag

I am guessing that the new package manager ignores the second kind. So do my git tags have any meaning any more? Do the two versions have to be the same?

The version in Project.toml is currently only used when you have the package checked out. So if you release your git tags into METADATA they are still used as before.

In the future, I think the idea is that you bump the version specified in Project.toml and then tag/make a release from that commit. See also https://github.com/JuliaLang/Pkg.jl/issues/351

1 Like