You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by "royteeuwen (via GitHub)" <gi...@apache.org> on 2026/08/03 16:19:21 UTC
[PR] SLING-13253 - update-dist: only remove the previous release of the same major version [sling-org-apache-sling-committer-cli]
royteeuwen opened a new pull request, #39:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/39
## What
When `release update-dist` (and by extension `release finalize`) auto-deduces which previous release to remove from `dist/release/sling`, it now only considers versions **sharing the major version being released**.
Previously it picked the closest older version regardless of major, which meant releasing the first version of a new major line would delete the still-maintained older line.
## Behaviour
With `1.2.14` and `2.1.0` both published:
| Releasing | Removed | Kept |
|---|---|---|
| `1.2.16` | `1.2.14` | `2.1.0` |
| `2.1.2` | `2.1.0` | `1.2.14` |
| `2.0.0` (only `1.2.14` present) | nothing | `1.2.14` |
`--previous-version` still overrides the deduction entirely and is unchanged.
## Tests
Three new cases in `UpdateDistCommandTest` covering both parallel-stream directions and the first-release-of-a-new-major case. Full suite green.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13253 - update-dist: only remove the previous release of the same major version [sling-org-apache-sling-committer-cli]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #39:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/39#issuecomment-5168977917
## [](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [87.5% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-committer-cli&pullRequest=39)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] SLING-13253 - update-dist: only remove the previous release of the same major version [sling-org-apache-sling-committer-cli]
Posted by "royteeuwen (via GitHub)" <gi...@apache.org>.
royteeuwen merged PR #39:
URL: https://github.com/apache/sling-org-apache-sling-committer-cli/pull/39
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org