Skip to content

Commit

Permalink
Merge pull request #505 from camptocamp/fix
Browse files Browse the repository at this point in the history
Audit: Add debug messages
  • Loading branch information
sbrunner authored Aug 22, 2024
2 parents f1ac5d8 + 34733a9 commit 001bdca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github_app_geo_project/module/audit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ async def _select_java_version(
gradle_version_out = subprocess.run( # nosec
["./gradlew", "--version"], capture_output=True, check=True, encoding="utf-8"
).stdout.splitlines()
_LOGGER.debug("Gradle version out: %s", "\n".join(gradle_version_out))
gradle_version_out = [line for line in gradle_version_out if "Gradle" in line]
_LOGGER.debug("Gradle version out filter: %s", "\n".join(gradle_version_out))
gradle_version = gradle_version_out[0].split()[1]
_LOGGER.debug("Gradle version: %s", gradle_version)

minor_gradle_version = ".".join(gradle_version.split(".")[0:2])
_LOGGER.debug("Gradle minor version: %s", gradle_version)

java_path_for_gradle = local_config.get("java-path-for-gradle", config.get("java-path-for-gradle", {}))
if minor_gradle_version not in java_path_for_gradle:
Expand Down

0 comments on commit 001bdca

Please sign in to comment.