Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a38eeb05f04ba072680856a0baa73c0b3bb51ff58530271a675969746baf690b
Ticket: 18dae74ef12bcfcd36bfc61e80e26f3b6ff1c6e8
quarry serve --data defaults into the first repository
User & Date: dmestas on 2026-08-19 15:55:11
Changes

  1. icomment:
    Fixed, and the bug was worse than filed: "the first --repo" iterated a
    Go MAP, so the chosen directory was a coin flip per boot — two starts
    of the same command could derive into two different repositories.
    
    The rule now lives in one function (`dataDir`, shared by serve and
    reindex) with one decision: a SINGLE repository defaults to `.quarry`
    beside it — deterministic and obviously derived — and a fleet without
    --data is REFUSED at startup with an error naming the repositories and
    the flag. No arbitrary default survives; the flag help says so at all
    three sites.
    
    Chose refusal over a per-user or cwd default deliberately: any silent
    default migrating existing fleets would strand their current data in
    the old location and boot with empty indexes — a surprise rebuild.
    The refusal costs one explicit flag, once, and tells the operator
    exactly what happened. Deployments that already pass --data (ours
    does) see no change.
    
  2. mimetype: "text/x-markdown"
  3. resolution changed to: "Fixed"
  4. status changed to: "Fixed"