Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android GIT Gradle CC cannot execute git.exe #511

Closed
Tracked by #306
TWiStErRob opened this issue Jun 5, 2023 · 3 comments · Fixed by #686
Closed
Tracked by #306

Android GIT Gradle CC cannot execute git.exe #511

TWiStErRob opened this issue Jun 5, 2023 · 3 comments · Fixed by #686
Labels
a:feature new feature, improvement or request in:android Android Gradle Plugin helper plugin on:gradle issue related to Gradle

Comments

@TWiStErRob
Copy link
Owner

TWiStErRob commented Jun 5, 2023

Run AndroidVersionPluginIntgTest#build version is used from GIT revision number (release) with configuration cache on.

Cause 1: org.gradle.api.InvalidUserCodeException: Starting an external process 'P:\tools\vcs\git\bin\git.exe --version' during configuration time is unsupported.
Cause 2: org.gradle.api.InvalidUserCodeException: Starting an external process 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z' during configuration time is unsupported.

test.zip

@TWiStErRob TWiStErRob mentioned this issue Jun 5, 2023
3 tasks
@TWiStErRob TWiStErRob added a:feature new feature, improvement or request on:gradle issue related to Gradle in:android Android Gradle Plugin helper plugin labels Jun 5, 2023
@TWiStErRob
Copy link
Owner Author

gradlew build --rerun-tasks --configuration-cache on BLT e0fbd5e949b548812beacd9b6bf84ef86543a64d

* What went wrong:
Configuration cache problems found in this build.

6 problems were found storing the configuration cache, 3 of which seem unique.
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe --version'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Task `:Android:calculateBuildConfigVCSRevisionInfo` of type `net.twisterrob.gradle.android.tasks.CalculateVCSRevisionInfoTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See the complete report at file:///P:/projects/workspace/net.twisterrob.travel/build/reports/configuration-cache/da9a041wx8qmie0twfslu1yqi/c5wz1t5wt6izr3yq6wci1mt8j/configuration-cache-report.html
> Starting an external process 'P:\tools\vcs\git\bin\git.exe --version' during configuration time is unsupported.
> Starting an external process 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z' during configuration time is unsupported.
> Invocation of 'Task.project' by task ':Android:calculateBuildConfigVCSRevisionInfo' at execution time is unsupported.

configuration-cache-report.zip

@TWiStErRob
Copy link
Owner Author

@TWiStErRob
Copy link
Owner Author

gradlew on Inventory:

* What went wrong:
Configuration cache problems found in this build.

2 problems were found storing the configuration cache.
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe --version'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Plugin class 'net.twisterrob.gradle.android.AndroidVersionPlugin': external process started 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z'
  See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:external_processes

See the complete report at file:///P:/projects/workspace/net.twisterrob.inventory/build/reports/configuration-cache/99r5mkyrgexbclzvyor0xwldv/9y1w7dbbpyyzzx59spqiirgu0/configuration-cache-report.html
> Starting an external process 'P:\tools\vcs\git\bin\git.exe --version' during configuration time is unsupported.
> Starting an external process 'P:\tools\vcs\git\bin\git.exe config --system --show-origin --list -z' during configuration time is unsupported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature new feature, improvement or request in:android Android Gradle Plugin helper plugin on:gradle issue related to Gradle
Projects
None yet
1 participant