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

Flakes example from README doesn't work on macos-latest #48

Closed
rickynils opened this issue Sep 21, 2020 · 6 comments · Fixed by #57
Closed

Flakes example from README doesn't work on macos-latest #48

rickynils opened this issue Sep 21, 2020 · 6 comments · Fixed by #57
Labels
bug Something isn't working

Comments

@rickynils
Copy link

I tried the Flakes example from the README on macos-latest:

name: "Test"
on:
  pull_request:
  push:
jobs:
  tests:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
      with:
          # Nix Flakes doesn't work on shallow clones
          fetch-depth: 0
    - uses: cachix/install-nix-action@v11
      with:
        install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20200820_4d77513/install
        extra_nix_config: |
          experimental-features = nix-command flakes
    - run: nix-build

The installation failed with this error:


Run cachix/install-nix-action@v11
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   633  100   633    0     0   2370      0 --:--:-- --:--:-- --:--:--  2361

100  2593  100  2593    0     0   4343      0 --:--:-- --:--:-- --:--:--  4343
downloading Nix 3.0pre20200820_4d77513 binary tarball for x86_64-darwin from 'https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20200820_4d77513/nix-3.0pre20200820_4d77513-x86_64-darwin.tar.xz' to '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.y9Dm5psj'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   673  100   673    0     0   2520      0 --:--:-- --:--:-- --:--:--  2520

  0 26.2M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 50 26.2M   50 13.3M    0     0  8695k      0  0:00:03  0:00:01  0:00:02 14.3M
100 26.2M  100 26.2M    0     0  12.9M      0  0:00:02  0:00:02 --:--:-- 18.8M
Note: a multi-user installation is possible. See https://nixos.org/nix/manual/#sect-multi-user-installation
Creating volume and mountpoint /nix.
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.y9Dm5psj/unpack/nix-3.0pre20200820_4d77513-x86_64-darwin/install: line 108: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.y9Dm5psj/unpack/nix-3.0pre20200820_4d77513-x86_64-darwin/create-darwin-volume.sh: No such file or directory
child_process.js:642
    throw err;
    ^
@domenkozar
Copy link
Member

domenkozar commented Sep 21, 2020

cc @zimbatm too old Nix release?

@domenkozar domenkozar added the bug Something isn't working label Sep 21, 2020
@zimbatm
Copy link
Contributor

zimbatm commented Sep 22, 2020

can you try this release? https://github.com/numtide/nix-flakes-installer/releases/tag/nix-2.4pre20200618_377345e

It's possible that the latest push is broken.

rickynils added a commit to nixbuild/nixbuild-action that referenced this issue Sep 22, 2020
@rickynils
Copy link
Author

@zimbatm It gives the same error. I also realized that this issue was already reported here: nix-community/nix-unstable-installer#4

@SomeoneSerge
Copy link

Just ran into this running nix build (opposed to non-flakes (?) nix-build) on ubuntu-latest. Used this release and it worked: https://github.com/numtide/nix-flakes-installer/releases/tag/nix-3.0pre20201007_5257a25

  • Any reason the example suggests to use nix-build? As far as I understand it only looks at default.nix, but I may be wrong
  • Would be nice to update the README, anyway

Thanks

@domenkozar
Copy link
Member

I've opened #57 but it still fails on macos, I think @zimbatm needs to do another bump but Nix on master is quite broken at the moment.

To make this all really smooth we're missing NixOS/nix#4047

@domenkozar
Copy link
Member

Fixed, thanks @zimbatm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants