Skip to content

Commit

Permalink
Revert "Fix signing settings when no Keychain is specified (#1093)"
Browse files Browse the repository at this point in the history
This reverts commit 5b34141.

We have a compilation error:
```
e: /mnt/agent/work/737a92a2f69083c2/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/validation/ValidatedMacOSSigningSettings.kt: (59, 20): Unresolved reference: keychainFile
```
  • Loading branch information
igordmn committed Sep 10, 2021
1 parent 10c7d95 commit d956a2a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ internal fun MacOSSigningSettings.validate(
val signIdentity = this.identity.orNull
?: error(ERR_UNKNOWN_SIGN_ID)
val keychainPath = this.keychain.orNull
val keychainFile =
listOf(project.file(keychainPath), project.rootProject.file(keychainPath))
.firstOrNull { it.exists() }
if (keychainPath != null) {
val keychainFile =
listOf(project.file(keychainPath), project.rootProject.file(keychainPath))
.firstOrNull { it.exists() }
check(keychainFile != null && keychainFile.exists()) {
"$ERR_PREFIX could not find the specified keychain: $keychainPath"
}
Expand Down

0 comments on commit d956a2a

Please sign in to comment.