mitsuhiko / mitsuhiko/self-replace
Support for Replacing Directory Targets
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 823
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
Hi, thank you for the great work on this project!
I'm wondering if there is any plan to support replacing a directory (e.g. .app bundles on macOS) using self-replace.
While using self_update, I encountered an issue when trying to update an app on macOS where the target is an .app bundle — which is essentially a directory. See the related issue here: https://github.com/jaemk/self_update/issues/145
After reviewing how self_update handles updates, it seems like the logic for replacing such targets might be a better fit in the upstream self-replace crate. Hence, I’d like to raise this feature request.
Would it be possible to consider adding support for replacing directory targets?
Thanks for your consideration!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the upstream self-replace crate currently handles self_update replacement and the related issue at https://github.com/jaemk/self_update/issues/145. Define the behavior needed for replacing macOS .app directory targets and verify that directory-based updates work without regressing existing file replacement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100