Giter Site home page Giter Site logo

Comments (13)

awalsh128 avatar awalsh128 commented on August 11, 2024

Does this work on another configuration? Also, can you try with an older release?

from cache-apt-pkgs-action.

 avatar commented on August 11, 2024

Thank you for your reply.
What do you mean by "other configuration"? I'll try with an older release.

from cache-apt-pkgs-action.

 avatar commented on August 11, 2024

I've tried with 1.0.1 but same issue.

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

Can you share your workflow file and the full log as well? Also, can you tell me more about this custom container setup?

from cache-apt-pkgs-action.

 avatar commented on August 11, 2024

Thank you for the reply.

Unfortunately I can't disclose the rest of the workflow file, but I made a test repository here: https://github.com/emiliencartesoft/test-apt-cache/actions

As you can see the full logs are here: https://github.com/emiliencartesoft/test-apt-cache/actions/runs/3581373128/jobs/6024358104

from cache-apt-pkgs-action.

 avatar commented on August 11, 2024

Found the issue, in https://github.com/awalsh128/cache-apt-pkgs-action/blob/master/action.yml ${{ github.action_path }} doesn't point to the correct path in a custom container. See actions/runner#716

Changing from ${{ github.action_path }} to ${GITHUB_ACTION_PATH} solves the issue.

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

Nice find. I updated the dev branch with the workaround so you can use that as @dev. From the history I am not confident they will commit the fix soon (although it looks close to resolution). I may just issue a patch for this. Thoughts?

from cache-apt-pkgs-action.

 avatar commented on August 11, 2024

Well it works with the example packages (ca-certificates build-essential) and when sudo curl wget are installed too.

I did test with other packages like python3-pip awscli but that didn't work for some unknown reasons: https://github.com/emiliencartesoft/test-apt-cache/actions/runs/3581841036/jobs/6025366907

Anyway with the commit 343fbfd it works in custom containers, at least when sudo curl wget packages are installed.

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

Sorry for the lag here.

RE: Action path - Looks like this was mentioned before.
RE: Container specific - There was a mention where the container needed to be run as priveleged

Let me know if the situation changes make the container option modification.

from cache-apt-pkgs-action.

 avatar commented on August 11, 2024

Well for me the changes in the commit 343fbfd should be merged into the master branch because it fixes the issue with custom containers.

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

I agree. I am going to put in that change as well and issue a patch tonight. I meant the container specific one but I think I misunderstood and this solved it completely for you.

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

Issued a patch update in v1.2.1. Let me know how it works and I will rev up the tag aliases for general use (i.e. latest).

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

Going to assume this worked and close out this issue since it has been awhile.

from cache-apt-pkgs-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.