Update path references for Central->Core, Forks->Fork rename

The workspace's Central/ and Forks/ parent folders were renamed to
Core/ and Fork/ (singular) - a pure local filesystem reorganization,
git repos don't care about their own absolute path. Updates
sync-consumers.ps1's consumer list and workspace-root detection, plus
doc-comment/README cross-references that hardcoded the old paths.

HordeWorker's entry stays at the old 'Forks/HordeWorker' path for now:
a long-running process holds that directory open, so it couldn't be
moved to Fork/HordeWorker in this pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-09-07 16:00:08 +02:00
1 parent d1a02a8c4d
commit c5c3ec3d9f
5 files changed
+26 -22

No files matched your search

+16 -14
View File
@@ -40,20 +40,20 @@ $consumerProjects = @(
New-ConsumerProject 'Original/SyncServer'
New-ConsumerProject 'Original/UnraidMonitor'
New-ConsumerProject 'Original/PubliSafe'
New-ConsumerProject 'Forks/Bitmagnet'
New-ConsumerProject 'Forks/Heretic'
New-ConsumerProject 'Fork/Bitmagnet'
New-ConsumerProject 'Fork/Heretic'
New-ConsumerProject 'Original/InfiniteVideo'
New-ConsumerProject 'Forks/MegaBasterd'
New-ConsumerProject 'Forks/HordeWorker'
New-ConsumerProject 'Fork/MegaBasterd'
New-ConsumerProject 'Forks/HordeWorker' # TODO: rename to Fork/HordeWorker once its locked directory can be moved (a long-running process holds it open)
New-ConsumerProject 'Original/OutdoorGames'
New-ConsumerProject 'Original/KioskDisplay'
New-ConsumerProject 'Original/CraftStudio'
New-ConsumerProject 'Original/MediaViewer'
New-ConsumerProject 'Central/CarrierNode'
New-ConsumerProject 'Central/ContentScanner'
New-ConsumerProject 'Central/ModerationHub'
New-ConsumerProject 'Central/ProjectConfigurator'
New-ConsumerProject 'Central/AuthGuard'
New-ConsumerProject 'Core/CarrierNode'
New-ConsumerProject 'Core/ContentScanner'
New-ConsumerProject 'Core/ModerationHub'
New-ConsumerProject 'Core/ProjectConfigurator'
New-ConsumerProject 'Core/AuthGuard'
)
function Invoke-GitText {
@@ -221,14 +221,16 @@ $sourceRepositoryRoot = (Invoke-GitText -WorkingDirectory $sourceRoot -Arguments
$sourceRoot = Resolve-FullPath $sourceRepositoryRoot
# The workspace root is the ancestor directory that contains both 'Original'
# and 'Forks' (every consumer project lives under one of those). Walk up from
# the shared repo instead of assuming a fixed nesting depth, since shared/ has
# moved before (e.g. Web/shared -> Web/Central/shared) and may move again.
# and 'Fork' (every consumer project lives under one of those, or under
# 'Core' for the central infrastructure services). Walk up from the shared
# repo instead of assuming a fixed nesting depth, since shared/ has moved
# before (e.g. Web/shared -> Web/Central/shared -> Web/Core/shared, with
# 'Forks' renamed to singular 'Fork' at the same time) and may move again.
$workspaceRoot = Split-Path -Parent $sourceRoot
while ($workspaceRoot -and -not ((Test-Path -LiteralPath (Join-Path $workspaceRoot 'Original') -PathType Container) -and (Test-Path -LiteralPath (Join-Path $workspaceRoot 'Forks') -PathType Container))) {
while ($workspaceRoot -and -not ((Test-Path -LiteralPath (Join-Path $workspaceRoot 'Original') -PathType Container) -and (Test-Path -LiteralPath (Join-Path $workspaceRoot 'Fork') -PathType Container))) {
$parent = Split-Path -Parent $workspaceRoot
if (-not $parent -or $parent -eq $workspaceRoot) {
throw "Could not locate the workspace root (a directory containing both 'Original' and 'Forks') above $sourceRoot."
throw "Could not locate the workspace root (a directory containing both 'Original' and 'Fork') above $sourceRoot."
}
$workspaceRoot = $parent
}