diff --git a/save-cli/src/commonNonJsMain/kotlin/com/saveourtool/save/cli/config/SavePropertiesExt.kt b/save-cli/src/commonNonJsMain/kotlin/com/saveourtool/save/cli/config/SavePropertiesExt.kt index b0c7b4d1..60ea3f66 100644 --- a/save-cli/src/commonNonJsMain/kotlin/com/saveourtool/save/cli/config/SavePropertiesExt.kt +++ b/save-cli/src/commonNonJsMain/kotlin/com/saveourtool/save/cli/config/SavePropertiesExt.kt @@ -24,7 +24,7 @@ fun SaveProperties.Companion.of(args: Array): SaveProperties { val configFromCli = try { parseArgs(fs, args) } catch (e: IOException) { - return logErrorAndExit( + logErrorAndExit( ExitCodes.INVALID_CONFIGURATION, "Save expects to get the root directory for test files as the first CLI argument: save [cli-options] [...]. " + "Provided value to cli as a root for test directory and is not able to find it. " + @@ -46,7 +46,7 @@ private fun SaveProperties.validate(): SaveProperties { try { fs.metadata(fullConfigPath) } catch (e: FileNotFoundException) { - return logErrorAndExit( + logErrorAndExit( ExitCodes.INVALID_CONFIGURATION, "Not able to find configuration file '$fullConfigPath'." + " Please provide a valid path to the test config via command-line or using the file with properties. " + " Error: ${e.message}" diff --git a/save-plugins/fix-plugin/src/commonMain/kotlin/com/saveourtool/save/plugins/fix/FixPlugin.kt b/save-plugins/fix-plugin/src/commonMain/kotlin/com/saveourtool/save/plugins/fix/FixPlugin.kt index 6cf3f23d..05afa877 100644 --- a/save-plugins/fix-plugin/src/commonMain/kotlin/com/saveourtool/save/plugins/fix/FixPlugin.kt +++ b/save-plugins/fix-plugin/src/commonMain/kotlin/com/saveourtool/save/plugins/fix/FixPlugin.kt @@ -210,7 +210,8 @@ class FixPlugin( // instead, there was created sarif file with list of fixes, which we will apply ourselves val fixedFiles = SarifFixAdapter( sarifFile = sarifFile, - targetFiles = testsPaths + targetFiles = testsPaths, + testRoot = testConfig.getRootConfig().directory, ).process() // sarif file was created by us, remove tmp data diff --git a/settings.gradle.kts b/settings.gradle.kts index b6b3a613..25df3678 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,6 +15,16 @@ dependencyResolutionManagement { maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") } + maven { + name = "saveourtool/okio-extras" + url = uri("https://maven.pkg.github.com/saveourtool/okio-extras") + credentials { + username = providers.gradleProperty("gprUser").orNull + ?: System.getenv("GITHUB_ACTOR") + password = providers.gradleProperty("gprKey").orNull + ?: System.getenv("GITHUB_TOKEN") + } + } } } enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")