Giter Site home page Giter Site logo

Comments (7)

Gerschtli avatar Gerschtli commented on June 5, 2024 16

This is not an issue with this action. The latest nix release (2.14.0) has a regression which causes this.

Pinning nix version in the nix-install-action resolves it:

install_url: https://releases.nixos.org/nix/nix-2.13.3/install

See NixOS/nixpkgs#218858 (comment)

from cachix-action.

dpc avatar dpc commented on June 5, 2024 1

I forgot to post an update. I fixed it couple of hours after posting.

This was caused by GH action runner wiping the environment on start, discarding Nix environment. It's weird because it works fine on Linux, in similar setup. I think it's because shell is not being used to invoke commands on MacOS, while it is on Linux, or because DeterminateSystems installer is wiring things up differently between the two for some reason.

The fix was to run ./env.sh after sourcing Nix init script to update .env and .path inside the runner's dir, before calling ./run.sh.

from cachix-action.

rsdy avatar rsdy commented on June 5, 2024

I'm seeing the same thing.

from cachix-action.

ehildenb avatar ehildenb commented on June 5, 2024

We're seeing the same thing: https://github.com/runtimeverification/evm-semantics/actions/runs/4296996503/jobs/7489418708

I've tried version 14 and version 15 of the action.

from cachix-action.

rvolosatovs avatar rvolosatovs commented on June 5, 2024

This is not an issue with this action. The latest nix release (2.14.0) has a regression which causes this.

Pinning nix version in the nix-install-action resolves it:

install_url: https://releases.nixos.org/nix/nix-2.13.3/install

See NixOS/nixpkgs#218858 (comment)

Thank you! This solved my issue, closing

from cachix-action.

dpc avatar dpc commented on June 5, 2024

I see the same thing on a self-hosted macos runner and I don't even know why. How does one debug this?

from cachix-action.

sandydoo avatar sandydoo commented on June 5, 2024

I see the same thing on a self-hosted macos runner and I don't even know why. How does one debug this?

This usually means that we can't find the cachix executable in your PATH. You can start tracking this down by echo-ing PATH during the workflow and making sure that it contains paths to the system/user nix profiles.
I would recommend pre-installing cachix if using a self-hosted runner.

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.