You've already forked wp-prometheus
docs: Update CLAUDE.md with v0.0.2 session learnings
- Document composer path repository configuration with version aliases - Document Gitea CI/CD fix for handling re-releases - Add key learnings about submodule handling in CI environments Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
26
CLAUDE.md
26
CLAUDE.md
@@ -280,6 +280,32 @@ add_action( 'wp_prometheus_collect_metrics', function( $collector ) {
|
|||||||
|
|
||||||
## Session History
|
## Session History
|
||||||
|
|
||||||
|
### 2026-02-01 - CI/CD Fixes (v0.0.2)
|
||||||
|
|
||||||
|
- Fixed composer.json dependency configuration for CI compatibility
|
||||||
|
- **Key Learning**: Git submodules with path repositories need explicit version aliases for CI:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"repositories": [
|
||||||
|
{
|
||||||
|
"type": "path",
|
||||||
|
"url": "lib/wc-licensed-product-client",
|
||||||
|
"options": {
|
||||||
|
"symlink": false,
|
||||||
|
"versions": {
|
||||||
|
"magdev/wc-licensed-product-client": "0.2.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
- Using `dev-main` constraints with `minimum-stability: dev` causes issues in CI
|
||||||
|
- Path repository with `symlink: false` and explicit `versions` mapping works reliably
|
||||||
|
- **Key Learning**: Gitea API returns "Release has no Tag" error when re-releasing existing tags
|
||||||
|
- Fixed release.yml to check for and delete existing releases before creating new ones
|
||||||
|
- Changed minimum-stability back to stable
|
||||||
|
|
||||||
### 2026-02-01 - Initial Setup (v0.0.1)
|
### 2026-02-01 - Initial Setup (v0.0.1)
|
||||||
|
|
||||||
- Created initial plugin structure based on wp-fedistream blueprint
|
- Created initial plugin structure based on wp-fedistream blueprint
|
||||||
|
|||||||
Reference in New Issue
Block a user