-
Notifications
You must be signed in to change notification settings - Fork 30
Use a limited subset of characters for version #465
Comments
The
The character set is defined by the image specification. They intentionally made it overly restrictive so it could be relaxed in the future, but they started with it being URL-safe. However, I just checked and it looks like they expanded it a while ago and I must've missed that change. |
Right, I understand the revision number is needed to sort versions. I was more concerned about the usage of
Does the expansion include |
Yes. They added a really weird URL-like schema. From here:
|
Packaging wise, we made up this "policy", so we can also change it. The only requirement is that zypper always sees a new version as a new version. You can use "zypper versioncmp" to check different formats. For example: zypper versioncmp 1.0.0_git_r50 1.0.0+git_r50 zypper versioncmp 1.0.0_git_r50 1.0.0+git_r60 zypper versioncmp 1.0.0_git_r70 1.0.0+git_r60 Thus, looks like zypper does not make a difference between "+" and "_", so you could replace that. The commit hash could also be shortened. Since we have the revision first, the commit hash is not really used other than for humans to visually know which commit is in, but nor zypper nor our tools make use of that. So, packaging wise, it is ok to do these changes. |
i also dont have any strong opinion on this, feel free to submit a change. but then we mustn't forget to do it consistently for the other packages in kubic-project as well |
I've written a patch to handle the extended character set for tags openSUSE/umoci#234. It will be included in the |
@cyphar, great thanks! |
@cyphar I think openSUSE/umoci#234 did not get into Factory yet. Is there any change to get it there? |
is this still an issue? |
This GitHub issue/PR is unactive since long time. Is this GitHub ISSUE/PR still needed? Please close or update it accordingly. |
https://github.com/kubic-project/velum/blob/b67a614f1900c58674e0de37797339511f040afe/packaging/suse/make_spec.sh#L33
@MaximilianMeister This line introduces a quite complex version of the package. I am wondering if we could simplify it. I have seen
+
is used in other openSUSE package versions, thus I am wondering if this format of<version>+gir_r<revision_num>_<commit>
is some kind of policy. If not, couldn't we make it more simple? something like<version>_git_<short commit hash>
?All this came across while trying to tag the velum image with the velum package version. Umoci only supports a limited subset of characters for tags.
In
umoci states the limited character set available for image names and tags. @cyphar is there any mandatory reason for that limited subset of characters for tags? Anyway, I'd prefer to simplify our version numbers rather than enabling insane tags in umoci.
The text was updated successfully, but these errors were encountered: