vpkg icon indicating copy to clipboard operation
vpkg copied to clipboard

Versioning

Open vulpivia opened this issue 6 years ago • 3 comments

How is versioning handled? If I understood the code right, the "update" command always updates to the most current commit in a repository.

If that's the case, wouldn't it make more sense to get the repository at the commit in which the version number has been changed or something like that? A new version would then be created when the version number in vpkg.json changes.

vulpivia avatar Dec 30 '19 22:12 vulpivia

Thats the purpose of tags in git. vpkg does indicate both the version indicated in the vpkg.json/v.mod and the commit hash at the end of installation but I have yet to add a mechanism in specifying the version of the packages through git tags.

nedpals avatar Dec 30 '19 22:12 nedpals

vpkg does indicate both the version indicated in the vpkg.json/v.mod and the commit hash at the end of installation

What does indicate mean in that context? That it's only used to show the user which version was installed?

When versions are specified using git tags, will the version number become obsolete? I might look into how we can use git tags if I find the time in the next few days.

vulpivia avatar Dec 30 '19 23:12 vulpivia

What does indicate mean in that context? That it's only used to show the user which version was installed?

Yes. But I also forgot to mention that both the commit hash and version listed at the package manifest is also recorded to the lockfile.

When versions are specified using git tags, will the version number become obsolete? I might look into how we can use git tags if I find the time in the next few days.

It won't. Git tags aren't the best way to do versioning and version numbers indicated at the manifest will remain for double-checking.

nedpals avatar Dec 31 '19 01:12 nedpals