Public Access
fix: stale .mokogitea/workflows refs in scaffolding cause .mokogit/.mokogit nesting #352
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Half-migrated
.mokogitea->.mokogitreferences in the shared CLI scaffolding are the root cause of the.mokogit/.mokogit/nested-directory bug observed across repos during the MokoGitea -> MokoGIT rebrand.workflow_sync.phpwas migrated (it writes to.mokogit/workflows/by basename, correctly), and the template repos (Template-Generic, Template-Joomla) are clean/flat. But other tools still scaffold/look-up the OLD.mokogitea/workflows/path. When a repo is scaffolded with.mokogitea/whileworkflow_syncwrites the migrated.mokogit/, a later directory rename collides (mv .mokogitea .mokogitinto an existing.mokogit) and produces.mokogit/.mokogit/.Stale
.mokogitea/workflows/references to fix (nesting-relevant)cli/repo_wizard.php:159— scaffolds.mokogitea/workflows/pr-check.ymlcli/release.php:40-41— looks for.mokogitea/workflows/bulk-repo-sync.ymlcli/bulk_workflow_push.php:39,73— default dest.mokogitea/workflows/<filename>Change these to
.mokogit/workflows/to match the template source-of-truth andworkflow_sync.php.Out of scope for this issue (separate concern)
~30
.mokogitea/manifest.xmlreferences across the version/release scripts (version_read.php,version_bump.php,version_check.php,version_set_platform.php,version_auto_bump.php,release_create.php,release_package.php,release_validate.php,version_reset_dev.php,manifest_element.php,manifest_licensing.php,deploy_joomla.php,create_repo.php). That's the repo metadata manifest (now API-managed / deleted per the fork workflow), a different migration than the workflows dir. Do NOT lump it in here — changing the manifest path blindly risks breaking version/release reads across all repos.Verification done
.mokogit/.mokogit/..mokogit/: clean, flat.workflow_sync.phpPhase 1/2 use$workflow['name'](basename) +WORKFLOW_DIR = '.mokogit/workflows'-> cannot nest.Reported from a MokoSuiteBackup session; filed here since the fix belongs in the shared tooling.
Branch created:
feature/352-fix-stale-mokogitea-workflows-refs-in-scResolved: stale .mokogitea/workflows scaffolding refs repointed to .mokogit/workflows across repo_wizard/release/bulk_workflow_push/UnifiedValidation; the .mokogit/.mokogit nesting was cleaned org-wide. Closing.