Repository navigation
fix(init): respect CLAUDE_CONFIG_DIR for global paths - #674
TechWizard9999 wants to merge 2 commits into
Conversation
157233e to
96e2620
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 |
96e2620 to
5130f11
Compare
|
Rebased on latest develop per the refactor notice and force-updated this branch. @pszymkowiak could you please re-review when convenient? |
5130f11 to
716639f
Compare
|
Thanks for this work, this is a key feature to me |
716639f to
bc23ed5
Compare
|
Thanks for the feedback. I have now rebased this PR on the latest develop and force-pushed a fresh update with conflict resolution retained for .\n\n@pszymkowiak @FlorianBruniaux could you please re-review when convenient? |
|
Correction: the rebased update keeps the CLAUDE_CONFIG_DIR behavior in init path resolution.\n\nPlease re-review when convenient. Thanks. |
|
Quick maintainer ping after latest rebase update. @pszymkowiak @FlorianBruniaux please re-review when convenient. |
|
Any news on this ? |
|
Why is there no traction for this simple change? It's been on the table for long and it is a key feature for many of us. |
Add Co-authored-by trailer for Roopesh, original author of the superseded PR rtk-ai#674 that first addressed CLAUDE_CONFIG_DIR handling in rtk init. Co-authored-by: Roopesh <[email protected]>
|
Hi, thanks for your PR. This has been superseded by #2087, and you’ve been properly credited there |
Description
rtk init -gignoredCLAUDE_CONFIG_DIRand always targeted~/.claude. This PR makes global Claude path resolution env-aware so installs/patches land in the intended config directory.Related Issue
Closes #633
Changes Made
CLAUDE_CONFIG_DIRwhen setCLAUDE_CONFIG_DIRsettings.jsonpath instead of always showing~/.claude/settings.jsonFiles Changed
src/init.rs- env-aware path resolution and testsCHANGELOG.md- unreleased bug-fix note forrtk init -gdoes not respect CLAUDE_CONFIG_DIR #633Testing
cargo fmt --all --checkrtk cargo clippy --all-targets(2 pre-existing warnings in untouched files)rtk cargo testrtk cargo test init::tests::test_resolve_claude_dir_Checklist
cc @pszymkowiak for review