From simon.urbanek at r-project.org  Sat Oct  5 13:42:49 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Sat, 5 Oct 2013 13:42:49 +0200
Subject: [Rd] Allow semantic versioning for packages
In-Reply-To: <CABtg=K=AB=eJu3dtEvqOtA0o_R37OdwNAZw=X-TDePJwLKnQDg@mail.gmail.com>
References: <CABtg=K=AB=eJu3dtEvqOtA0o_R37OdwNAZw=X-TDePJwLKnQDg@mail.gmail.com>
Message-ID: <7779BA7B-8282-44BA-9EB9-C16B33D88840@r-project.org>

Gabor,

what you propose is not really feasible, because R relies on the fact that it can meaningfully order the the versions as to determine the update order. If you use arbitrary strings then ordering becomes random - that's why git commit hashes are so useless for this purpose. The fact that you are forced to use something meaningful is for a good reason here.

Cheers,
Simon


On Oct 4, 2013, at 8:53 PM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:

> Dear R developers,
> 
> (http://bugs.r-project.org/ seems to be down, so I am writing a feature
> request here.)
> 
> It would be great to allow semantic version numbers for packages. See
> http://semver.org/ for details.
> 
> The problem I am having is that I am setting up a nightly build server, and
> there is no easy way to create a version number for builds that are in
> between releases.
> 
> Ideally I would use something like
> 
> TAG+DIST.HASH
> 
> TAG is the last tag of the git branch, usually something like
> MAJOR.MINOR.PATCH, DIST is the number of commits since the last release and
> HASH is the first seven letters of the git hash for the commit. E.g.
> 
> 0.7.0-pre+518.badcafe
> 
> Right now instead of this I am forced to use something like
> 
> 0.6.999.518
> 
> which is a lot less expressive and there is no (easy) way to include the
> branch information.
> 
> Thanks, Best Regards,
> Gabor
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 



[Rd] Allow semantic versioning for packages
Simon Urbanek