-
Notifications
You must be signed in to change notification settings - Fork 40
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
cachix-daemon-.../post-build-hook.sh': No such file or directory #169
Comments
@srid, would you be able to test whether it works with Your self-hosted runner is running inside a nixos-container, correct? |
Unless we can reproduce the issue we can't really help there, I'm closing this for now. If you hit an issue, schedule a call at https://cal.com/domenkozar and we can go deeper. |
What's this setting?
Yes |
It disables the daemon+post-build-hook push method. - uses: cachix/cachix-action@v14
with:
useDaemon: false I've been chipping away at setting up a similar runner in a nixos-container. I think what's happening is that the post-build-hook is being executed outside of the container by the Nix daemon, but the post-build-hook script the action creates is inside the container. That's why you're seeing the "no such file" error. I'm not sure what to do about this. |
Basic repro:
#!/bin/sh
echo "oh hi there" chmod +x /etc/script.sh
run: |
NIX_CONFIG="post-build-hook = /etc/script.sh" nix build --rebuild nixpkgs#hello |
Sounds like another use case for build hook to run on the client side. |
Cachix is unable to push from inside nixos-container for whatever reason:
https://github.com/srid/emanote/actions/runs/7678233028/job/20928039851
(This was on a self-hosted runner)
Is there anything else I do here?
The text was updated successfully, but these errors were encountered: