]> git.openstreetmap.org Git - chef.git/commitdiff
Don't pin dependencies for mediawiki 1.43
authorTom Hughes <tom@compton.nu>
Sat, 22 Mar 2025 15:14:29 +0000 (15:14 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 22 Mar 2025 15:14:29 +0000 (15:14 +0000)
cookbooks/mediawiki/resources/site.rb
cookbooks/mediawiki/templates/default/composer.local.json.erb

index 096484a9903cd960240c29d6e1a590b512de7a22..6d8a5443e40cda176a7ff9b2655960795b9abd0a 100644 (file)
@@ -96,6 +96,7 @@ action :create do
     owner node[:mediawiki][:user]
     group node[:mediawiki][:group]
     mode "664"
+    variables :version => new_resource.version
   end
 
   execute "#{mediawiki_directory}/composer.json" do
index 338a0de9d97871541b387a1608cf17d9041f3a66..37382c5f6d7749742dda9bf1c1fffa1c38048a22 100644 (file)
@@ -8,6 +8,7 @@
     }
   },
   "require": {
+<% if @version.to_f < 1.43 -%>
     "guzzlehttp/psr7": "2.4.5",
     "data-values/common": "1.0.0",
     "data-values/data-values": "3.0.0",
@@ -16,5 +17,6 @@
     "data-values/number": "0.11.1",
     "data-values/serialization": "1.2.4",
     "data-values/time": "1.0.4"
+<% end -%>
   }
 }