Closed OndrejSladky closed 11 months ago
Looks good, just the version of the hash is just a bit too long. I think 6 characters should be enough (already for this the prob of a collision should be very low).
btw. in the current implementation, which version will appear in "true" releases (I just remember this is what I was always struggling with a couple of ys ago)?
btw. in the current implementation, which version will appear in "true" releases (I just remember this is what I was always struggling with a couple of ys ago)?
I'm not entirely sure what is the question. But if it is which versions will have separate tag on gh, then I was thinking I'd make it every 0.x version. Or do you have any other sugestions?
When you release a New version, will it be something like 0.3 or 0.3-348a841 ? For the actual releases the version should be the former
On Tue, Oct 3, 2023 at 8:51 PM Ondřej Sladký @.***> wrote:
btw. in the current implementation, which version will appear in "true" releases (I just remember this is what I was always struggling with a couple of ys ago)?
I'm not entirely sure what is the question. But if it is which versions will have separate tag on gh, then I was thinking I'd make it every 0.x version. Or do you have any other sugestions?
— Reply to this email directly, view it on GitHub https://github.com/OndrejSladky/kmercamel/pull/46#issuecomment-1745537444, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACC7KJSSGUSV44UFQ6TW7TTX5RNBNAVCNFSM6AAAAAA5RIUE5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGUZTONBUGQ . You are receiving this because your review was requested.Message ID: @.***>
The way it is now, it'll display 0.3-348a841. If you think this is not good enough, i'll file another issue and will think about how to elegantly fix this.
In case it's a new release, it should be just 0.3
. I'm not sure how it's doable, but it somehow should be as a I often see it in software packages.
btw. see also:
git describe --tags --always
git describe --abbrev=4 --dirty --always --tags
Actually $ git describe --abbrev=4 --dirty --always --tags v0.1.0
seems to be working really well!!!!! When it's a release, it prints just eg v0.1.0
.
So it just needs to be included somehow in the Makefile – as the first step of compilation, this string should be generated.
One difficulty I see is that it make should be able to compile it even out of git without a failure.
Version is now automatically updated after every single commit.