fix(mods): mods.py still points at retired repos, so copy-assets and the bunwulf generators both miss the in-tree Unity project #28
Labels
No labels
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/eco-mods#28
Loading…
Reference in a new issue
No description provided.
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?
Two related defects in
mods/scripts/mods.py, both left over from the consolidation that brought the Unity asset project in-tree underunity/.1.
copy-assetsclones a retired repo for a source that is now a sibling directorycopy_assets()clonesgit@github.com:coilyco-bridge/eco-mods-assets.git --depth 1into./eco-server/assets, strips its.git, then walks./eco-server/assets/Builds/Mods/UserCode/<mod>/Assetsand copies each into./Mods/UserCode/<mod>/Assets.That upstream repo is deprecated. The tree it was cloned for now lives in this repository at
unity/Builds/Mods/UserCode/<mod>/Assets, with the exact same shape. Confirmed present:BunWulfBiochemical/AssetsandBunWulfConstruction/Assets.So the verb performs a network clone of a dead remote to obtain files that are already on disk one directory over.
./eco-server/does not otherwise exist in the repo, so the scratch path is orphaned too.Expected shape: read from
../unity/Builds/Mods/UserCode/, drop the clone, the.gitteardown, and the--branchplumbing that only made sense against a separate remote.2.
USERCODE_PATHwrites generated code into a retired repo outside the treeAt module scope:
bunwulf_agricultural()andbunwulf_structural()both write through it, sojust bunwulf-agriculturalandjust bunwulf-structuralemit their generated plants and recipes intoeco-mods-public, a deprecated repo that is not a resident checkout. On a machine where that path does not exist the write fails, and on a machine where a stale copy does exist the generators silently update the wrong tree.It is also an absolute Windows path with a drive letter and a user directory baked in, which makes the verb unrunnable anywhere else.
Expected shape: resolve against this repository's own
Mods/UserCode, relative to the script, matching wherecopy_assetsalready writes.Why one issue
Both are the same rot in the same file: the module still assumes the pre-consolidation three-repo split. Fixing either alone leaves the file half-migrated.
Related
Canonical repo set is
coilyco-gaming/{eco-app, eco-mods, eco-ops}. Every othereco-*repo is deprecated.