[TikiWiki-commits] [Git][tikiwiki/tiki][master] [DOC] Add comment in composer.json to document automatic CI check for version...
"Marc Laporte \(@marclaporte\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <688d2079d775f_2cd5f48631eb@gitlab-sidekiq-low-urgency-cpu-bound-v2-655597b6c5-kkvhj.mail> |
Marc Laporte pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
fe2ea7b8 by Landry Bitege at 2025-08-01T19:58:13+00:00
[DOC] Add comment in composer.json to document automatic CI check for version...
---
* [DOC] Add comment in composer.json to document automatic CI check for version constraints using ~ instead of ^
See merge request tikiwiki/tiki!8154
- - - - -
2 changed files:
- doc/devtools/check_caret_operator.sh
- vendor_bundled/composer.json
Changes:
=====================================
doc/devtools/check_caret_operator.sh
=====================================
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -e
+# This script ensures that caret (^) version constraints are not used in composer.json
+# as per Tiki's dependency policy:
+# https://gitlab.com/tikiwiki/tiki/-/blob/master/vendor_bundled/composer.json
+# Instead, tilde (~) should be used unless there's a documented exception.
+
echo "Checking for ^ operators in composer.json require and require-dev..."
MATCHES=$(jq '.require, .["require-dev"]' vendor_bundled/composer.json | grep -E '": "\^' || true)
=====================================
vendor_bundled/composer.json
=====================================
@@ -29,6 +29,7 @@
"",
" NOTE ON VERSION CONSTRAINTS:",
" As of 2025-04, we use the tilde (~) operator instead of caret (^) for all dependencies.",
+ " This file is automatically checked in CI by .gitlab-ci.yml using doc/devtools/check_caret_operator.sh to ensure the use of ~ instead of ^ in version constraints.",
" This change aims to prevent unexpected upgrades caused by packages that do not strictly follow semantic versioning.",
" The caret (^) operator (e.g., ^1.10.0) allows updates up to the next major version (<2.0.0).",
" This can introduce breaking changes if the package does not adhere strictly to SemVer.",
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fe2ea7b84aa144a714c635f21227a04637fc7ea2
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fe2ea7b84aa144a714c635f21227a04637fc7ea2
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs