Giter Site home page Giter Site logo

Comments (6)

sandydoo avatar sandydoo commented on June 5, 2024

@srid, would you be able to test whether it works with useDaemon: false?

Your self-hosted runner is running inside a nixos-container, correct?

from cachix-action.

domenkozar avatar domenkozar commented on June 5, 2024

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.

from cachix-action.

srid avatar srid commented on June 5, 2024

@srid, would you be able to test whether it works with useDaemon: false?

What's this setting?

Your self-hosted runner is running inside a nixos-container, correct?

Yes

from cachix-action.

sandydoo avatar sandydoo commented on June 5, 2024

What's this setting?

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.

from cachix-action.

sandydoo avatar sandydoo commented on June 5, 2024

Basic repro:

  1. Create /etc/script.sh on the server (not in the container):
#!/bin/sh
echo "oh hi there"
chmod +x /etc/script.sh
  1. In a GitHub actions workflow:
run: |
  NIX_CONFIG="post-build-hook = /etc/script.sh" nix build --rebuild nixpkgs#hello

from cachix-action.

domenkozar avatar domenkozar commented on June 5, 2024

Sounds like another use case for build hook to run on the client side.

from cachix-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.