Open TimoBechtel opened 2 months ago
Hi there :) I wanted to try devbox on my Mac, but it always fails when running devbox shell.
devbox shell
The path of the project does not contain spaces. I installed devbox using home-manager.
I am new to nix, but this seems similar to an error I've got before, when trying to use flakes in a git repo without staging new files before.
More context:
devbox init
shell
{ "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.5/.schema/devbox.schema.json", "packages": [], "shell": { "init_hook": [ "echo 'Welcome to devbox!' > /dev/null" ], "scripts": { "test": [ "echo \"Error: no test specified\" && exit 1" ] } } }
0.10.5
nix (Nix) 2.20.1
macOS (Apple Silicon)
[...] ⣾ Computing the Devbox environment... 2024/05/04 17:59:29 Running print-dev-env cmd: /nix/var/nix/profiles/default/bin/nix print-dev-env path:/Users/timo/devbox-test/.devbox/gen/flake --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure --json ✓ Computed the Devbox environment. Error: nix print-dev-env --json "path:/Users/timo/devbox-test/.devbox/gen/flake": exit status 1 2024/05/04 17:59:29 Command stderr: error: … while updating the lock file of flake 'path:/Users/timo/devbox-test/.devbox/gen/flake?lastModified=1714838352&narHash=sha256-aJljX2JChXF00/6C8cCqrJdWpNNWIQRyUtRpQj3ygc8%3D' … while updating the flake input 'nixpkgs' error: source tree referenced by 'github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c' does not contain a '/flake.nix' file [...]
What happened?
Hi there :) I wanted to try devbox on my Mac, but it always fails when running
devbox shell
.The path of the project does not contain spaces. I installed devbox using home-manager.
I am new to nix, but this seems similar to an error I've got before, when trying to use flakes in a git repo without staging new files before.
More context:
Steps to reproduce
devbox init
devbox shell
Command
shell
devbox.json
Devbox version
0.10.5
Nix version
nix (Nix) 2.20.1
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs