Skip to content

Commit 430cd55

Browse files
mattkramclaude
andcommitted
fix: Add .exe extension to wrapper symlink on Windows
The create_wrapper_symlink function was not using paths::binary_name() to add the .exe extension on Windows, causing the conda wrapper symlink to be created without the extension. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8d4400f commit 430cd55

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tools/install.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ fn create_bin_symlink(bin_dir: &Path, prefix: &Path, binary: &str) -> miette::Re
197197
/// This is used for tools that ana wraps (like conda), where ana detects
198198
/// the binary name and acts as a wrapper for the underlying tool.
199199
fn create_wrapper_symlink(bin_dir: &Path, binary: &str) -> miette::Result<()> {
200-
let symlink_path = bin_dir.join(binary);
200+
let binary_name = paths::binary_name(binary);
201+
let symlink_path = bin_dir.join(&binary_name);
201202

202203
// Get the path to the current ana executable
203204
let ana_bin = std::env::current_exe()

0 commit comments

Comments
 (0)