A versioning scheme and releases
So this has come up on IRC a few times. I only just thought to make an issue about it.
This looks relevant and sane: http://semver.org/
Let the bikeshedding begin!
Yeah, suggestioins welcome, especially about the branching schema.
I would like to see first real release before we continue working on lua and libmpv, because some changes might introduce bugs and there were already lots of changes. As I said before, a proper page with future plans would be nice.
Idea 1: I think we should release every 3 Months with an incrementing number like systemd. We should only make a stable branch if bugs are reported and then we can push patch releases.
- Major release every 3 Month.
- Patch releases at least a week after the first bugs are reported. We can push further releases if necessary.
rel 1.1
rel1-stable: rel 1 / ---- • rel 2 ( no bugs reported)
master: ------ • /--------------- • ---------------------------- • \----
rel3-stable: rel 3 \---- • ------- •
rel 3.1 rel 3.2
Idea 2: If branching releases is too complicated or generates too many branches then we could just release faster like every month or 2 months.
Well, I like idea 1.
So, I could just pick a random git commit and declare it as release. I'll do so every 2 months. If there are significant bugs, I'll make a branch starting from the release commit, and cherry-pick fixes.
I'd number each release with a single integer (1, 2, 3, ...). If there are bug fixes, I'd release them as 1.1 (first bugfix), 1.2 (second bugfix), etc. (like giselher said)
Sounds ok? Or does someone have alternative suggestions?
Not sure about random, I suppose you should get what appears to be the most stable, or at least close to that. I do know that pretty much everything is pretty stable, but there are sometimes regressions, bugs, etc. And if you're in the middle of implementing something big, I suppose you may want to either get the commit that comes before it or wait until you're done.
Big things would happen in separate branches anyway.
@wm4: Sounds good.
Big things would happen in separate branches anyway.
Sometimes I just push somewhat "risky" changes to master. But in the end, they have to be tested "somehow". It's also true that larger changes are developed in branches, but even then often issues pop up after merge, because branches are virtually never tested by anyone other than the developer.
This is actually the main reason why I think having releases would be good: it'd be easier to declare certain commits as stable, and I could include bug fixes to them too.
Noe that I would drop support for all older releases when making a new one. Is that ok?
Noe that I would drop support for all older releases when making a new one. Is that ok?
Sounds like the best solution, because most will never use an older version of a video player if there is a new release.
I'll release v0.1 tomorrow, using whatever is in master.
Starting with 0.1 on request by ChrisK2. We will switch to v1 numbering once milestone 1 is completed: https://github.com/mpv-player/mpv/issues?milestone=1&state=open
(A bit arbitrary, but whatever.)
PS: "tomorrow" means 24h from now.
Well, I think we can consider this done now.