Skip to content

Every tool's link step is Python #206

Open

Description

@ooloth

Current state

The link step decides which files in $HOME point into this repo, and its 28 link.bash files are tested only by running them as bash against a fake HOME. Each one sources tools/bash/utils.bash for symlink(), features/update/symlinks.bash runs them all, and scripts/checks/link-scripts.bash checks that each writes nothing when DOTFILES_CHECK=true.

Ideal state

  • Every tool's link step is Python, tested by tests that import it
  • symlinks, dcheck and u create, report and sweep the same links as before

Decisions

Constraints

Open

Starting points

  • tools/bash/utils.bash: symlink(), which every link step calls
  • features/update/symlinks.bash: sweeps broken links and runs every link step
  • features/update/tests/test_symlinks.py: how the link step is tested today

Depends on

  • The sub-issue that sets up the repo-level Python project: the ported code needs the project to live in

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceUpkeep that changes how the repo is built, not what it does

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions