This repository was archived by the owner on Aug 11, 2026. It is now read-only.
Repository navigation
Commit 1e09cbf
committed
fix: honor --pin when --force is used on already installed extension
When an extension is already installed and the user runs
`gh extension install --pin <tag> --force`, the current code
routes through the upgrade path which ignores the pin and
installs the latest version.
This fix removes the existing extension first when --pin is
specified, allowing the subsequent install to honor the pin.
Fixes cli#135511 parent b300f2e commit 1e09cbf
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
383 | 389 | | |
384 | 390 | | |
385 | 391 | | |
| |||
0 commit comments