Skip to content

Commit

Permalink
fix: mise fails to install kubectl on windows from aqua registry (#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
roele authored Jan 8, 2025
1 parent d66ad22 commit 5b30972
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/aqua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,11 @@ impl AquaBackend {
for (src, dst) in self.srcs(pkg, tv)? {
if src != dst && src.exists() && !dst.exists() {
if cfg!(windows) {
let dst = if dst.extension().is_none() {
dst.with_extension("exe")
} else {
dst
};
file::copy(&src, &dst)?;
} else {
let src = PathBuf::from(".").join(src.file_name().unwrap().to_str().unwrap());
Expand Down

0 comments on commit 5b30972

Please sign in to comment.