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

No Cache is stored because nothing has been found #41

Closed
eye2web opened this issue May 19, 2021 · 6 comments
Closed

No Cache is stored because nothing has been found #41

eye2web opened this issue May 19, 2021 · 6 comments

Comments

@eye2web
Copy link

eye2web commented May 19, 2021

Im getting to following messages during the POST step.
I'm using version 1.10

Save gradle-generated-jars gradle-generated-jars: no files to cache => won't upload empty cache Save dependencies-gradle dependencies-gradle: creating single-layer cache image dependencies-gradle: no files to cache => won't upload empty cache Save dependencies-maven dependencies-maven: creating single-layer cache image dependencies-maven: no files to cache => won't upload empty cache

@mcarrillowz
Copy link

I'm having the same issue, @eye2web do you find a way to solve it?

I'm using the action like this:

      - uses: burrunan/gradle-cache-action@v1
        name: Test Coverage
        with:
          read-only: false
          arguments: :project:unitTestCoverageVerificationDebug
          concurrent: false
          gradle-build-scan-report: false

@vlsi
Copy link
Contributor

vlsi commented Jul 1, 2022

@mcarrillowz would you share the link to the actions log?

@mcarrillowz
Copy link

@mcarrillowz would you share the link to the actions log?

The repo is private, but let me know what you want to see and I can share it

@mcarrillowz
Copy link

@vlsi It seems that I found the issue. I'm running the action within a container using the root user and the gradle cache goes to /root/.gradle/caches, but the action uses ~/.gradle/caches and ~ is resolved as /github/home/

Any plans to use an input to specify the .gradle path?

Reference: https://github.saobby.my.eu.orgmunity/t/how-to-use-the-github-cache-action-in-a-containerized-workflow/219514/3

@vlsi
Copy link
Contributor

vlsi commented Jul 4, 2022

@mcarrillowz , thank you for the analysis. I'll fix it tomorrow

@vlsi vlsi closed this as completed in 9bf9ff3 Jul 6, 2022
@vlsi
Copy link
Contributor

vlsi commented Jul 6, 2022

I've added home-directory: /path/to/home property in burrunan/gradle-cache-action@v1.11. It would be nice if you could check if it solves the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants