fix version numbering for FreeBSD repository, see #114 #115
Merged
reynir
merged 2 commits from fix-version
into main
3 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'fix-version'
Deleting a branch is permanent. It CANNOT be undone. Continue?
a2a2ad9ac7
tob0a5a05070
3 months agoThis is btw deployed for builds.robur.coop / pkg.robur.coop and I also re-created the package repository for the offending versions. IMHO good to merge. The "check-versions.sh" could be more automated and actually share some code within the package repo scripts, but we can leave it as is for now.
It seems to me that with this change we have a stronger assumption of versions being of format
<major>.<minor>.<patch>
. I'm not opposed to this, but it's good to be aware of.2.0.0-10-gabcdef-20220202-hahh 2.0.0-11-g123456-20220201-abcd
2.0.0-10-gabcdef-20220202-hahh 2.0.0-110-g123456-20220201-abcd
2.0.0-11-g123456-20220201-abcd 2.0.1-20220120-abcd
3.0-20230101-abcd 3.0.1-20230204-bdbd
Do we lose support for version numbers without the patch part? E.g. 3.0-...
Yes we do. Well, and we do not.
So the current state of our package repository is that all packages adhere to the
MAJOR.MINOR.PATCH
form (orMAJOR.MINOR.PATCH-#COMMITS-g<hash>
). This PR adds some magic string (.0.g0000000) when the version is exactly such (figuring out by counting the '.' characters). So when you do tags / releases of a different form (MAJOR.MINOR), that code won't be executed. An alternative strategy could be to check whether "g" is present (though the number of hex chars varies, 6 or 7 are a good guess) -- maybe that is actually more sane? WDYT?On one hand I think it is more robust/sane. On the other hand I suspect it's less straightforward code and I am fine with stronger assumption of the major/minor/patch format.
I force-pushed and use
grep
for a bunch of hex chars instead of counting dots.I suspect there could be trouble if versions / tags do not conform to MAJOR.MINOR.PATCH -- maybe there should be some sanitizing and warning instead of just using what is there.
That check is done in
c545553e67
Thanks for your review, IMHO this is ready to be merged now :)
b0a5a05070
to03c00fe018
3 months ago677403a1b6
to73fbb59377
3 months ago88c91c0856
into main 3 months agoReviewers
88c91c0856
.