Skip to content

fix(paths): reconcile Zi installer and loader path resolution #194

Description

@ss-o

Summary

Reconcile the published Zi installer and loader with the approved core path-resolution contract without weakening existing installer safety checks.

Current state

public/zsh/init.zsh and public/sh/install.sh already prefer XDG data, cache, and config locations, including creation of a missing XDG data parent. Their legacy behavior is not fully aligned with direct core sourcing, and relative XDG values are not rejected consistently.

Deliverables

Verification

  • Extend tests/installers.sh for legacy-only, XDG-only, both-present, invalid-relative, missing-parent, explicit override, and paths-with-spaces cases.
  • Run sh ./tests/installers.sh and the repository's existing syntax checks.
  • Verify the checked-in checksum artifacts remain generated and clean.

Dependency

Blocked on the finalized resolver contract in the Zi core sub-issue. Implementation should not invent a second precedence model.

Next action

After the core truth table is accepted, map each installer entry point to it and add failing fixtures before changing behavior.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ziZi core behavior, APIs, or documentation.type:bugSomething is broken or behaving incorrectly.

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions