Repository navigation
Conversation
📊 Automated PR Analysis
SummaryAdds an RTK_DISABLED=1 environment variable that bypasses all hook rewrites by calling process::exit(1) early in the run() function. Includes a test for the env var check and documents RTK_DISABLED alongside RTK_TELEMETRY_DISABLED in the README. Review Checklist
Linked issues: #1153 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
466cc4d to
181de69
Compare
181de69 to
83cc83a
Compare
|
Closing as a duplicate of #3917, which adds the same exported RTK_DISABLED=1 passthrough for rtk rewrite, with unit tests that do not touch the process environment, an end to end test for the exit code and stdout contract, and the documentation update. This branch has also been conflicting since April. Please review #3917 and comment there if anything from your version is missing, or reply here if you meant a different scope. |
Summary
Adds the
RTK_DISABLED=1environment variable that bypasses all hook rewrites, providing a simple opt-out mechanism for the rewrite system.Changes
run()— whenRTK_DISABLED=1, the function callsprocess::exit(1)(passthrough mode) before any rewrite logic runs.test_rtk_disabled_env_var_bypasses_rewriteto verify the env var check logic.RTK_DISABLEDandRTK_TELEMETRY_DISABLED.Usage
Closes #1153