Repository navigation
depends: give a dependency in another namespace a local name for templates #1143
jholzinger-hadrian
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In templates, a dependency in another namespace is keyed by its qualified ID, as the cross-namespace references docs describe. When that namespace is generated, or changes between checkouts, a template can't name it in advance. I'd like a dependency to carry a local name, chosen by the daemon that depends on it:
pitchfork would add the dependency to the template map under
searchas well as its qualified key. Plain strings independswould keep their meaning, so existing configs don't change.I understand short names are limited to the current namespace so that two
redises from different projects can't collide. Here the dependent chooses the name, so pitchfork could reject one that clashes with another dependency or with a daemon in its own namespace.The use case: mise references
The case I hit is in mise, which writes pitchfork config: I've written it up in jdx/mise#15944. A mise project references another project's daemon under a local name,
[daemons.search] project = "../search", and mise writes the dependency as a full ID in a namespace it generates per checkout, heresearch-bd9126f3bbca47d/app. The namesearchis gone by then, so a template fails:With the table, mise could pass the name through.
In plain pitchfork
It would help without mise too. Pointing a daemon at another checkout of a dependency, such as a worktree with the namespace
search-fix-ranking, means changingdependsand every template that names the old key: a staledaemons["search.app"]fails withField port is not defined. With a local name, only theidchanges.AI-assisted — Tool: pi 1.5.2; model: bifrost/claude-opus-5-5; version: unavailable.
All reactions