You've already forked wc-tier-and-package-prices
Fix CI/CD: Move submodule to lib/ directory like wp-fedistream
- Move submodule from vendor/magdev/ to lib/ to avoid Composer conflicts - Use relative submodule URL (../wc-licensed-product-client.git) - Pin submodule to v0.2.2 tag - Update composer.json with ^0.2 version constraint - Simplify .gitignore (no vendor exceptions needed) - Update workflow to exclude lib/.git instead of vendor/.git Based on working wp-fedistream implementation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -97,8 +97,8 @@ jobs:
|
|||||||
-x "${PLUGIN_NAME}/notes.*" \
|
-x "${PLUGIN_NAME}/notes.*" \
|
||||||
-x "${PLUGIN_NAME}/*.po~" \
|
-x "${PLUGIN_NAME}/*.po~" \
|
||||||
-x "${PLUGIN_NAME}/*.bak" \
|
-x "${PLUGIN_NAME}/*.bak" \
|
||||||
-x "${PLUGIN_NAME}/vendor/*/.git/*" \
|
-x "${PLUGIN_NAME}/lib/*/.git/*" \
|
||||||
-x "${PLUGIN_NAME}/vendor/*/CLAUDE.md" \
|
-x "${PLUGIN_NAME}/lib/*/CLAUDE.md" \
|
||||||
-x "*.DS_Store" \
|
-x "*.DS_Store" \
|
||||||
-x "*Thumbs.db"
|
-x "*Thumbs.db"
|
||||||
|
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -3,10 +3,7 @@
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
# Composer
|
# Composer
|
||||||
/vendor/*
|
/vendor/
|
||||||
!/vendor/magdev/
|
|
||||||
/vendor/magdev/*
|
|
||||||
!/vendor/magdev/wc-licensed-product-client/
|
|
||||||
composer.lock
|
composer.lock
|
||||||
|
|
||||||
# Twig cache
|
# Twig cache
|
||||||
|
|||||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -1,3 +1,3 @@
|
|||||||
[submodule "vendor/magdev/wc-licensed-product-client"]
|
[submodule "lib/wc-licensed-product-client"]
|
||||||
path = vendor/magdev/wc-licensed-product-client
|
path = lib/wc-licensed-product-client
|
||||||
url = ssh://git@src.bundespruefstelle.ch:2022/magdev/wc-licensed-product-client.git
|
url = ../wc-licensed-product-client.git
|
||||||
|
|||||||
@@ -13,20 +13,25 @@
|
|||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"url": "vendor/magdev/wc-licensed-product-client",
|
"url": "lib/wc-licensed-product-client"
|
||||||
"options": {
|
|
||||||
"symlink": false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.3",
|
"php": ">=8.3",
|
||||||
"twig/twig": "^3.0",
|
"twig/twig": "^3.0",
|
||||||
"magdev/wc-licensed-product-client": "@dev"
|
"magdev/wc-licensed-product-client": "^0.2"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"includes/"
|
"includes/"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"optimize-autoloader": true,
|
||||||
|
"platform": {
|
||||||
|
"php": "8.3.0"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"minimum-stability": "stable",
|
||||||
|
"prefer-stable": true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user