nix-installer-action icon indicating copy to clipboard operation
nix-installer-action copied to clipboard

`init: none` also requires `planner: Linux`

Open maralorn opened this issue 1 year ago • 3 comments

I am trying to use the action on a gitea-runner. The docker image is catthehacker/ubuntu:act-latest.

My job description is simple:

name: Nix build
on: [push]
run-name: Test and build flake
jobs:
  nix-build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install Nix
        uses: https://github.com/DeterminateSystems/nix-installer-action@v4
        with:
          init: none

You can see the result here: https://code.maralorn.de/maralorn/runner-test/actions/runs/17/jobs/0

For your convenience the error message is:

info: downloading installer (https://install.determinate.systems/nix/tag/v0.10.0/nix-installer-x86_64-linux)
Error: 
   0: Planner error
   1: Error executing action
   2: Action `configure_init_service` errored
   3: Could not detect systemd; you may be able to get up and running without systemd with `nix-installer install linux --init none`.
      See https://github.com/DeterminateSystems/nix-installer#without-systemd-linux-only for documentation on usage and drawbacks.
location:
   src/cli/subcommand/install.rs:193
backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

This is surprising because before that it says:

Set NIX_INSTALLER_INIT=none

I might be holding it wrong. Please enlighten me!

maralorn avatar Jul 07 '23 14:07 maralorn

Believing the docs helped. planner: linux fixes the issue.

maralorn avatar Jul 07 '23 14:07 maralorn

Yeah this is unfortunate UX isn't it. :( Maybe we can offer a better more immediate error.

Hoverbear avatar Jul 07 '23 19:07 Hoverbear

Yeah, the error message could definitely be better.

Am 7. Juli 2023 21:06:30 MESZ schrieb Ana Hobden @.***>:

Yeah this is unfortunate UX isn't it. :( Maybe we can offer a better more immediate error.

-- Reply to this email directly or view it on GitHub: https://github.com/DeterminateSystems/nix-installer-action/issues/33#issuecomment-1625917029 You are receiving this because you modified the open/close state.

Message ID: @.***>

maralorn avatar Jul 08 '23 12:07 maralorn