Skip to content
quarry Artifact [f6cdd9ee14]
Login

Artifact [f6cdd9ee14]

Artifact f6cdd9ee1481d17c5fbb6d35aa538aba1c6cbb4e7f71ea67112356c958a668c1:

Ticket change [f6cdd9ee14] - New ticket [e67a02268c] Repositories can only be added by restarting the server. by dmestas on 2026-08-18 00:33:26.
D 2026-08-18T00:33:26.894
J comment A\srepository\scan\sonly\sbe\sadded\sto\squarry\sby\sediting\sthe\sserver's\scommand\sline\sand\srestarting\sit.\sNeither\sa\suser\snor\san\sadmin\scan\sdo\sit\sthrough\sthe\sforge.\n\nThe\swhole\smechanism\sis\sa\sstartup\sflag:\n\n\s\s\s\squarry\sserve\s--repo\sname=/path/to/store\s--repo\sother=/path/...\n\nThere\sis\sno\s`repo.add`\sop\s—\sthe\sregistry\sholds\sonly\s`repo.list`\sand\s`repo.counts`,\sboth\sread-only\s—\sand\sno\sCLI\sverb\s(`version|spec|serve|reindex|user|account|webhook|docs`).\squarry\salso\snever\screates\sa\sstore:\sthere\sis\sno\s`zit\sinit`\spath\sanywhere,\sso\sthe\srepository\smust\salready\sexist\son\sdisk\sbefore\sit\scan\sbe\snamed.\n\nHosting\srepositories\sis\sthe\sfeature\sof\sa\sforge,\sand\snone\sof\sit\sis\sreachable\sthrough\sthe\sAPI.\sPrinciple\s5\sagain,\sand\sa\smore\scentral\scase\sthan\saccount\smanagement.\n\n##\sWhat\sadding\sone\scosts\stoday\n\nObserved,\stwelve\stimes\sover,\sadding\sthe\sgaia-gis\srepositories:\n\n1.\sClone\sor\screate\sthe\sstore\syourself,\soutside\squarry.\n2.\s`zit\simport-fossil\s--compatible`\sif\sit\scame\sfrom\sfossil.\n3.\sEdit\sthe\sserver\sinvocation\sto\sadd\s`--repo\sname=path`.\n4.\s**Restart\sthe\sserver**\s—\severy\sother\srepository\sgoes\sdown\sand\sre-runs\sits\singest\sround.\n\nStep\s4\sis\swhat\smakes\sthis\sworse\sthan\sthe\saccount\sgap.\sCreating\san\saccount\sneeds\sshell\saccess\sbut\sdisturbs\snothing;\sadding\sa\srepository\stakes\sthe\swhole\sfleet\soffline.\sWith\s23\srepositories\sthe\srestart\salso\sre-opens\s23\sindexes\sand\sre-runs\s23\singest\srounds,\swhich\sis\sthe\sexact\spath\sthat\shas\sto\sbe\sbounded\sfor\smemory\s(see\sthe\singest\slane).\n\n##\sThe\sinvocation\sis\sitself\sa\sliability\n\nThe\sserve\scommand\sis\snow\s57\sargv\selements\sheld\snowhere\sbut\sshell\shistory.\sThat\sis\snot\sa\shypothetical\sproblem:\sbuilding\sit\swith\san\sunquoted\sshell\svariable\ssilently\sdropped\stwelve\s`--repo`\sflags,\sand\squarry\sstarted\sand\sserved\sthe\sremaining\seleven\s**without\sany\sdiagnostic**,\sbecause\sGo's\sflag\sparser\streats\sthe\smalformed\selement\sas\sa\spositional\sargument\sand\signores\sit.\n\nTwo\sthings\sfall\sout:\n\n-\sThe\sregistry\sbelongs\sin\sstorage,\snot\sin\sargv.\sIt\sis\sforge\sconfiguration\sexactly\slike\s`mirror`\sand\s`webhook`,\sand\sthose\salready\slive\sin\sOLTP.\n-\s`serve`\sshould\srefuse\sunknown\spositional\sarguments.\sIt\saccepts\sand\signores\sthem\stoday,\swhich\sturned\sa\stwelve-repository\somission\sinto\sa\ssilent\sone.\n\n##\sWhat\sis\sneeded\n\n1.\s**Persist\sthe\sregistry**\sin\sOLTP\sbeside\s`mirror`\sand\s`webhook`.\s`--repo`\sstays\sas\sa\sbootstrap\sand\soverride,\sbut\sstops\sbeing\sthe\sonly\ssource\sof\struth.\n2.\s**`repo.add`\s/\s`repo.remove`\sops**,\s`ops.Admin`,\swith\sthe\sCLI\son\stop\sof\sthem\srather\sthan\sbeside\sthem.\n3.\s**Dynamic\sregistration.**\sAdding\sa\srepository\smust\snot\srestart\sthe\sfleet:\sopen\sits\sindex,\sstart\sits\spipeline,\sregister\sit.\sRemoval\sis\sthe\sreverse,\sand\sneeds\sto\sstop\sthe\spipeline\sand\sclose\sthe\sindex\srather\sthan\sleak\sboth.\n4.\s**Create\san\sempty\srepository**\s—\s`zit\sinit`\sbehind\s`repo.add\s--create`.\sThis\sis\sthe\s"host\smy\sproject\shere"\scase\sand\squarry\scannot\sdo\sit\sat\sall\stoday.\n5.\s**Adopt\sby\scloning\sa\sremote**\s—\swhich\sis\sthe\smirror\smachinery\spointed\sat\sa\sstore\sthat\sdoes\snot\sexist\syet,\sso\smost\sof\sit\sis\salready\swritten.\n6.\s**`serve`\srejects\sunknown\spositionals**,\sso\sa\smalformed\sinvocation\sfails\sloudly.\n\n##\sOrdering\n\nItems\s1–3\sare\sthe\sfeature.\sItems\s4–5\sare\swhat\smakes\sit\suseful\sto\ssomebody\swho\sis\snot\salready\sholding\sa\s`.fossil`\sfile.\sItem\s6\sis\sa\sfew\slines\sand\sshould\snot\swait\sfor\sany\sof\sit.\n\n##\sRelated\n\n-\sPrivate\srepositories:\sa\srepository\screated\sthrough\s`repo.add`\sneeds\sa\svisibility\sfrom\sthe\smoment\sit\sexists,\snot\safter.\n-\sAccount\smanagement\sin\sthe\sAPI:\sboth\sare\scases\sof\sforge\sadministration\sbeing\sshell-only.\n
J status Open
J title Repositories\scan\sonly\sbe\sadded\sby\srestarting\sthe\sserver
K e67a02268c38cc37d2ad1956a9bcbb7891716046
U dmestas
Z 18ebc5bb7bcfa3cb36383cae489c9dad