Comments (11)
Thinking of making this the default implementation 🤔
from cachix-action.
Tested this and now everything seems to be working as expected. Will do some more tests, especially having something that needs to cache many things, to see how it performs.
from cachix-action.
This is now in beta, help us test:
- uses: cachix/cachix-action@d150e67a68baa578596bcdbdf830657b4a173df4
with:
useDaemon: true
from cachix-action.
@terlar, thanks for the logs! The post-build-hook was completely overriding the existing nix configuration. We now tell nix to load and merge any existing user nix.conf
s.
from cachix-action.
https://blog.cachix.org/posts/2024-01-12-cachix-v1-7/
from cachix-action.
(and I'm not sure, it seems like maybe cachix action will upload by default, even if steps fail, but in my case, the entire Workflow gets into a bad state because the runner failure looks like an internal failure...)
from cachix-action.
You should be able to do that by running cachix watch-store $CACHE_NAME
after cachix-action.
from cachix-action.
I agree this would be a nice default
from cachix-action.
I tried this commit, but seems the install step is not executing the correct command:
Run cachix/cachix-action@d150e67a68baa578596bcdbdf830657b4a173df4
with:
name: terlar
authToken: ***
extraPullNames: nix-community
useDaemon: true
Cachix: installing
/usr/bin/bash -c
Cachix: checking version
Error: Action failed with error: Error: Unable to locate executable file: cachix. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
from cachix-action.
@terlar, thanks for the feedback! Should be fixed in cachix/cachix-action@5fc8ed76f6a97fdf54319a5f6846f67b60c9ed5d
from cachix-action.
Thank you, that worked, however, when running that commit with useDaemon enabled it seems my cache was not used. I did not look into why, but it has been working before:
https://github.com/terlar/emacs-config/actions/runs/6432508165
I'll investigate it when I have time to see if the nix.conf
was updated correctly or what the deal is...
from cachix-action.
Related Issues (20)
- cachix/cachix-action fails to run HOT 5
- Error: Unable to locate executable file: cachix. HOT 7
- Unable to locate file: cachix HOT 2
- Binary not found by action HOT 6
- Action started failing ~36 hours ago HOT 8
- Can no longer install cachix HOT 5
- Any way to not even have to download anything? HOT 2
- Fails with nix-installer-action and Nix 2.15.1 HOT 3
- UI: unsuccessful push should scream "error!" instead of failing silently HOT 2
- Syntax error when cachix-action runs HOT 5
- `skipAddingSubstituter` should also skip `extraPullNames`
- When tokens get revoked the cachix-action hangs indefinitely HOT 2
- Cachix action v14 + v13 failing since Jan 15 HOT 4
- cachix-daemon-.../post-build-hook.sh': No such file or directory HOT 6
- post step hangs indefinitely, run gets killed HOT 37
- Best way to avoid hitting GitHub API limits? HOT 3
- Cachix takes a long time to install in GitHub Actions CI HOT 10
- Push to cachix in post run failed. HOT 2
- Use `getBooleanInput` to parse flags
- When running on self-hosted runner, tripped and started uploading absolutely everything HOT 1
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 cachix-action.