Skip to content

Fix $HOME not expanding in remote config/plan paths#35

Merged
johnnygreco merged 1 commit intomainfrom
fix/remote-home-expansion
Mar 12, 2026
Merged

Fix $HOME not expanding in remote config/plan paths#35
johnnygreco merged 1 commit intomainfrom
fix/remote-home-expansion

Conversation

@johnnygreco
Copy link
Copy Markdown
Owner

Summary

  • Config and plan file paths used $HOME which gets single-quoted by shlex.join(), preventing shell expansion on the remote host
  • Now resolves the remote home directory via ssh echo $HOME so paths are absolute
  • Fixes remote --config and --plan options failing with "File '$HOME/...' does not exist"

Test plan

  • All 323 tests pass
  • Ruff lint and format checks pass

Config and plan paths were built with $HOME then passed through
shlex.join(), which single-quotes them and prevents shell expansion.
Resolve the remote home directory via `ssh echo $HOME` so these
paths are absolute and work regardless of quoting.
@johnnygreco johnnygreco merged commit 8d1dade into main Mar 12, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant