Repository navigation
fix(init): preserve settings.json symlink and portable hook path - #675
TechWizard9999 wants to merge 1 commit into
Conversation
e9908e2 to
88f4825
Compare
|
@pszymkowiak could you please review this and let me know if anything needs to change? |
|
Hey We are cleaning up the codebase and improving the project structure for better onboarding. As part of this effort, PR #826 reorganizes No logic changes — only file moves and import path updates. What you need to doRebase your branch on git fetch origin && git rebase origin/developGit detects renames automatically. If you get import conflicts, update the paths: use crate::git; // now: use crate::cmds::git::git;
use crate::tracking; // now: use crate::core::tracking;
use crate::config; // now: use crate::core::config;
use crate::init; // now: use crate::hooks::init;
use crate::gain; // now: use crate::analytics::gain;Need help rebasing? Tag @aeppling |
88f4825 to
b8c18c6
Compare
|
Rebased on latest develop per the refactor notice and force-updated this branch. @pszymkowiak could you please re-review when convenient? |
b8c18c6 to
eeb6eda
Compare
Signed-off-by: Roopesh <[email protected]>
eeb6eda to
4bf48a1
Compare
|
Rebased on latest develop and force-pushed with conflict resolution in init path handling.\n\nRetested the related symlink/portable-hook behavior.\n\n@pszymkowiak @FlorianBruniaux please re-review when convenient. |
|
Quick maintainer ping after latest rebase update. @pszymkowiak @FlorianBruniaux please re-review when convenient. |
|
Together with PR #674 this feature is to me critical. I can imagine that everybody is busy, but these have been opened for a month and I am sure that I am not the only one waiting for these features to be merged into rtk @FlorianBruniaux @pszymkowiak Thanks all for your efforts on a stellar product. |
|
This issue is prevalent across the repo. The symlink replacement happened for not just my Claude |
|
Again this issue is key for many of us and it seems simple enough to address. I know that a lot of good work goes into rtk, but this has been pending for way too long. Could the maintainer take care of it as well as PR #674 which is as crucial. |
|
Hi, closed in favor of #2088. |
Description
This fixes two global
rtk initproblems when patching Claude settings:settings.jsonwas replaced by a regular fileRelated Issue
Closes #653
Changes Made
${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hooks/rtk-rewrite.shFiles Changed
src/init.rs- symlink-safe write path + portable hook command + testsCHANGELOG.md- unreleased bug-fix note for "rtk init --global" breaks symlink #653Testing
cargo fmt --all --checkrtk cargo clippy --all-targets(2 pre-existing warnings in untouched files)rtk cargo testrtk cargo test init::tests::test_atomic_write_preserves_symlinkrtk cargo test init::tests::test_hook_command_for_settings_uses_portable_pathChecklist
cc @pszymkowiak for review