Skip to content

Commit

Permalink
Fix permission denied error when extracting sentry-cli concurrently (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn authored Aug 5, 2024
1 parent 4c54dc2 commit a3c33bf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Fix plugin for spring-dependency-management 1.1.6 ([#741](https://github.com/getsentry/sentry-android-gradle-plugin/pull/741))
- Make `SentryUploadNativeSymbolsTask` configuration-cache compatible ([#747](https://github.com/getsentry/sentry-android-gradle-plugin/pull/747))
- Fix `permission denied` error when extracting sentry-cli concurrently ([#748](https://github.com/getsentry/sentry-android-gradle-plugin/pull/748))

### Dependencies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ internal object SentryCliProvider {
/**
* Tries to extract the sentry-cli from resources if the computedCliPath does not exist.
*/
@Synchronized
internal fun maybeExtractFromResources(buildDir: File, cliPath: String): String {
val cli = File(cliPath)
if (!cli.exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,35 @@ class SentryPluginConfigurationCacheTest :
`is`(true)
)

appBuildFile.writeText(
// language=Groovy
"""
plugins {
id "com.android.application"
id "io.sentry.android.gradle"
}
android {
namespace 'com.example'
}
sentry {
includeNativeSources = true
uploadNativeSymbols = true
includeProguardMapping = true
autoUploadProguardMapping = true
autoInstallation.enabled = false
telemetry = false
}
""".trimIndent()
)

val runner = runner.withArguments(
"--configuration-cache",
"--build-cache",
":app:clean",
":app:assembleRelease"
":app:assembleRelease",
"--stacktrace"
)

val run = runner.build()
Expand Down

0 comments on commit a3c33bf

Please sign in to comment.