Open batrdn opened 3 months ago
cc @gcurtis or @savil
We seem to be transforming "path:.nix"
from devbox.json
into -nix
, because it starts with .
OK the problem is in this function: https://github.com/jetify-com/devbox/blob/main/internal/devpkg/package.go#L191
@batrdn , until this is fixed, you should be able to unblock yourself if you use a different path to your flake that doesn't start with .
@ipince I see, thanks for the help.
What happened?
I'm installing some system dependencies for my project from a local flake, and it seems that the generated flake reference starts with
-
, causing the issue.Command
install, shell
devbox.json
Devbox version
0.10.4
Nix version
2.18.1
What system does this bug occur on?
Linux (x86-64)
Debug logs
2024/04/17 18:53:39 Running print-dev-env cmd: /home/bat-erdene-tsogoo/.nix-profile/bin/nix print-dev-env path:/home/bat-erdene-tsogoo/Projects/chronicle/.devbox/gen/flake --extra-experimental-features ca-derivations --option experimental-features nix ✓ Computed the Devbox environment. Error: nix print-dev-env --json "path:/home/bat-erdene-tsogoo/Projects/chronicle/.devbox/gen/flake": exit status 1
2024/04/17 18:53:39 Command stderr: error: syntax error, unexpected '-'