Commit 4328d23
committed
fix(rtk): normalize binary path to bare 'rtk' in rewrite_command
find_rtk_binary() returned the full absolute path when a bundled binary
was found next to the exe (e.g. target/ci/deps/rtk), but bare 'rtk'
when found via PATH. This caused rewrite_command to produce
'/home/runner/.../rtk git status' instead of 'rtk git status' on Linux
CI where a previous test run had auto-installed the binary. 5 rewrite
tests failed.
Fix: all three discovery paths (bundled, PATH, auto-download) now return
bare 'rtk'. The binary's directory is prepended to PATH via
ensure_dir_in_path() so the bare name resolves at exec time.1 parent 8e98242 commit 4328d23
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
134 | 148 | | |
135 | 149 | | |
136 | 150 | | |
| |||
154 | 168 | | |
155 | 169 | | |
156 | 170 | | |
157 | | - | |
| 171 | + | |
| 172 | + | |
158 | 173 | | |
159 | 174 | | |
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
163 | 178 | | |
164 | | - | |
| 179 | + | |
| 180 | + | |
165 | 181 | | |
166 | 182 | | |
167 | 183 | | |
| |||
305 | 321 | | |
306 | 322 | | |
307 | 323 | | |
308 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
309 | 328 | | |
310 | 329 | | |
311 | 330 | | |
| |||
0 commit comments