Comments (13)
Does this work on another configuration? Also, can you try with an older release?
from cache-apt-pkgs-action.
Thank you for your reply.
What do you mean by "other configuration"? I'll try with an older release.
from cache-apt-pkgs-action.
I've tried with 1.0.1 but same issue.
from cache-apt-pkgs-action.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Going to assume this worked and close out this issue since it has been awhile.
from cache-apt-pkgs-action.
Related Issues (20)
- Verifying packages is slow HOT 3
- Improperly caching libnewlib-arm-none-eabi HOT 3
- `apt-cache show` fails on package that does exist (`libtk8.6`) HOT 3
- Fails to install on self-hosted runners HOT 2
- tar: Cowardly refusing to create an empty archive HOT 7
- Cache is installed on first run, not available when restored HOT 3
- Report bug issue using open source rockery HOT 1
- "Packages argument cannot be empty." even if `PACKAGES` is set. HOT 2
- Thoughts on caching `apt update`? HOT 3
- Please tag a release HOT 11
- What happened to the v1 tag? HOT 3
- apt-cache does not find packages with nektos/act HOT 6
- Exec Format Error on ARM Runner with apt_query HOT 4
- arm64 support. HOT 6
- Migrate Bash logic to Golang binary. HOT 1
- tar: u: Cannot stat: No such file or directory
- Improve input description formatting.
- Cache contains all packages if used multiple times HOT 2
- Failing on v1.2.4 HOT 18
- tar Cannot stat: No such file or directory HOT 28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cache-apt-pkgs-action.