Commit 2443340
fix(detection): use 'curlie version' subcommand for correct version detection
Fixed curlie version detection to use 'curlie version' subcommand
instead of '--version' flag.
Problem: Real curlie binary uses 'version' as a subcommand (no dashes):
curlie --version → shows curl version (incorrect)
curlie version → shows curlie version (correct)
Old behavior:
$ curlie --version
curl 8.5.0 [...]
Result: CONFLICT detection or version mismatch
New behavior:
$ curlie version
curlie 1.8.2 (2025-03-07T08:52:36Z)
Result: Correct version 1.8.2 detected
Detection logic:
1. Try 'curlie version' first → Success if output contains "curlie"
2. Fallback to '--version' → CONFLICT if only shows curl
This fixes upgrade prompts showing CONFLICT even after successful
curlie installation via 'go install github.com/rs/curlie@latest'.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent cbaec5e commit 2443340
2 files changed
Lines changed: 347 additions & 344 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
0 commit comments