GeezerVison is showing github.com — gradle configuration cache, don't execute git · Issue #1806 · diffplug/spotless
gradle configuration cache, don't execute git #1806
Description
So maybe I'm wrong, but couldn't the configuration cache issue be resolved by simply not executing git but instead using one of the pure java git libraries? at least it should solve this problem
2 problems were found storing the configuration cache.
- Plugin 'our.spotless': external process started '/usr/bin/git --version'
See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Plugin 'our.spotless': external process started '/usr/bin/git config --system --show-origin --list -z'
See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:external_processes
Activity
jbduncan commented on Sep 7, 2023
I believe we've had incompatibility problems with JGit in the past, so that's my only hesitation, but I think Ned would have more context than I do.
nedtwigg commented on Sep 10, 2023
I think replacing these with pure java would be great, but I actually think (though I can't confirm) that these are actually generated by Java JGit. I think if you add --stacktrace you can see the stack that's making these calls. We'll have to initialize the JGit manually to avoid them, I think...
nedtwigg commented on Sep 29, 2023
I believe this is now fixed in plugin-gradle 6.22.0. Let me know if it's not behaving correctly for you.
added a commit that references this issue
on Jan 25, 2024This issue will close once commit c4e5be7 is merged into the 'main' branch.c4e5be7
Metadata
Metadata
Development
No branches or pull requestsIssue actions