Closed (fixed)
Project:
Project Git instructions
Version:
7.x-1.x-dev
Component:
Instructions
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Apr 2020 at 09:36 UTC
Updated:
27 May 2020 at 20:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drummFor releases to show on the project page, they have to be marked as supported at https://www.drupal.org/node/3125088/edit/releases
Comment #3
introfini commentedI tried to changed that option but isn't active. How can I change that?
Comment #4
drummSorry, I missed that it is 1.x, not 1.0.x.
With semantic versioning, we’ll have tagged releases like 1.0.0 or 1.0.0-beta1, with all three 3 semver components. (Tagged releases won’t be only 1.0 or 1.0-beta1.) What the edit/admin releases page for a project is primarily for is marking tagged release series as supported, like “1.0.* is supported.” 1.0-dev translates to the 1.* series, which will only ever have that one dev release. These supported release series currently goes straight into update status XML, and having both 1.* and 1.0.* as “supported” would be hard for clients to consistently make sense of. So we currently only allow series with a major & minor version to be supported.
A few ways forward:
Comment #5
geek-merlinAah! I ran into this with og_members_tab.
Note that i had the idea to use 1.x branch from the examples on the version control tab.
So that page might benefit from an update.
Comment #6
markhalliwellJust adding to the noise to confirm that I ran into this as well with https://www.drupal.org/project/background_image.
Originally just created a 2.x branch and then realized that option to "support" it was disabled and "recommended" was completely missing. Figured, I would try creating a 2.0.x branch and that showed up.
Comment #7
introfini commentedAs a quick fix, the examples on the version control tab can be updated to recommend creating a 1.0.x branch.
Comment #8
heddnI've updated the docs. It seems 2.x is not support. You have to list Major.minor.patch (3 numbers separated by a period).
https://www.drupal.org/node/3108648 and https://www.drupal.org/node/1015226#semver-transition are also now updated.
Comment #9
drummheddn - I’m clarifying those edits.
1.xand2.xbranches are definitely supported. The only issue is this one - they can’t appear on the project page. Regardless of that, they still exist as regular installable dev branches.Comment #10
drummComment #11
tancI've created a 4.0.x branch for my project (responsive_menu) and I'm able to mark that as a dev release. In my case I'm not concerned about it showing on the project page but I do want it to show in the version select widget when writing an issue, but it doesn't. How do I get it to show?
Comment #12
drummThe new version is now available for responsive_menu issues. That is an unrelated issue, there is a cache of release versions for issues. I cleared it by saving the 4.0.x release.
Comment #13
tancThank you for doing that. I had also re-saved the releases form but it hadn't helped.
Comment #14
ccjjmartin commentedI am setting up a new module and happened to be aware of this issue so I won't do this but I am seeing that setting up a 1.x branch is recommended:
git checkout -b 1.x
git push origin 1.x
Comment #15
drummThis is now fixed. https://www.drupal.org/project/semver_example lists “Development version: 2.x-dev” under “2.0.0.” If that project were to make a
2.0.x-devrelease in the future, it would replace2.x-dev, the way the 2.1.* set of releases looks like.Hopefully this helps make it clear that
{major}.x-devreleases are supported, if you want to use that branching strategy.This does not make the
{major}.xdev release able to be supported and shown on the project page, unless there is a supported tagged release.Comment #16
drummThe remaining suggestion here is to update the Version control tab on project pages, which is certainly doable.
The original idea here was that project maintainers could use the
{major}.xbranches more-like themasterconvention that a lot of projects on GitHub/etc use. They always commit tomaster, and make a mostly-straight line of releases, incrementing version number components as-needed. For Drupal.org projects,{major}.xisn’t quite there; it does let you manage fewer branches if you intend your releases to move in a straight line, only going back to create a{major}.{minor}.xwhen you want to backport a non-breaking change.Comment #18
drummThat is now done.