Skip to content
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

init: none also requires planner: Linux #33

Open
maralorn opened this issue Jul 7, 2023 · 3 comments
Open

init: none also requires planner: Linux #33

maralorn opened this issue Jul 7, 2023 · 3 comments

Comments

@maralorn
Copy link

maralorn commented Jul 7, 2023

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
Copy link
Author

maralorn commented Jul 7, 2023

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

@maralorn maralorn closed this as completed Jul 7, 2023
@Hoverbear
Copy link
Contributor

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

@Hoverbear Hoverbear changed the title Action somehow ignores init: none init: none also requires planner: Linux Jul 7, 2023
@Hoverbear Hoverbear reopened this Jul 7, 2023
@maralorn
Copy link
Author

maralorn commented Jul 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants