GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gradle configuration cache, don't execute git · Issue #1806 · diffplug/spotless

gradle configuration cache, don't execute git #1806

New issue
Copy link
New issue
Copy link
Closed
Closed
gradle configuration cache, don't execute git#1806
Copy link

Description

@xenoterracide
xenoterracide
opened on Sep 7, 2023
Issue body actions

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

  1. jbduncan commented on Sep 7, 2023

    @jbduncan
    jbduncan
    on Sep 7, 2023
    Member
    More actions

    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.

  2. nedtwigg commented on Sep 10, 2023

    @nedtwigg
    nedtwigg
    on Sep 10, 2023
    Member
    More actions

    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...

  3. nedtwigg
    added a commit that references this issue on Sep 28, 2023

    Attempt a fix for #1806 by preventing JGit from finding the native gi…

    c320ffe
  4. nedtwigg
    closed this as completedin c4e5be7on Sep 28, 2023
  5. nedtwigg commented on Sep 29, 2023

    @nedtwigg
    nedtwigg
    on Sep 29, 2023
    Member
    More actions

    I believe this is now fixed in plugin-gradle 6.22.0. Let me know if it's not behaving correctly for you.

  6. simschla
    added a commit that references this issue on Jan 25, 2024

    Fix configuration cache misses caused by JGit shelling out to git (di…

    This issue will close once commit c4e5be7 is merged into the 'main' branch.
    c4e5be7
  7. benkard
    added a commit that references this issue on Apr 6, 2024

    chore(deps): update all non-major dependencies (mulk/mulkcms2!51)

    e5f61e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.