Skip to content

Commit

Permalink
Fix binary fetch (#94)
Browse files Browse the repository at this point in the history
* Fixed checking for local binary with the correct version

* Changelog entry
  • Loading branch information
Razz4780 authored Aug 22, 2023
1 parent 124753d commit f927d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/+binary-fetch.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed bug with fetching new mirrord binaries.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ class MirrordBinaryManager {
manager.latestSupportedVersion = version

val local = if (checkInPath) {
manager.getLocalBinary(downloadingVersion, wslDistribution)
manager.getLocalBinary(version, wslDistribution)
} else {
manager.findBinaryInStorage(downloadingVersion)
manager.findBinaryInStorage(version)
}
if (local != null) {
return
Expand All @@ -99,7 +99,7 @@ class MirrordBinaryManager {

project.service<MirrordProjectService>()
.notifier
.notifyRichError("failed to update the mirrord binary: ${error.message}")
.notifyRichError("failed to update the mirrord binary: ${error.message ?: error.toString()}")
}

override fun onFinished() {
Expand Down

0 comments on commit f927d45

Please sign in to comment.