devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Fix glibc-patch/flake.nix build

Open gcurtis opened this issue 1 year ago • 4 comments

The nix build for the glibc-patch flake fails in the following ways:

  • The flake and its shell script need to be re-added to git. Nix only allows flakes to be built in a git repo if they’re staged and up-to-date.
  • The flake reference is a relative path:
error: cannot fetch input 'path:./glibc-patch?lastModified=1&narHash=sha256-nbzIMxg2Ep3APeOoXex/3g0DswM1zs7ER1RQxJ62Vs8%3D' because it uses a relative path

gcurtis avatar Feb 27 '24 20:02 gcurtis

Fixed in the upcoming 0.9.2-dev release.

gcurtis avatar Feb 27 '24 20:02 gcurtis

Hi @gcurtis, please consider reopening this issue. I've just hit this problem while adding the "azure-cli" package to a devbox environment. I'm no more able to use devbox:

:~/git/box(develop)$ devbox shell
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Error: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' print-dev-env --json path:/home/giuliano-panzironi/git/box/.devbox/gen/flake: cannot fetch input 'path:./glibc-patch?lastModified=1&narHash=sha256-/ITcoD0x03tc9nm/wkCXPN9DmckU0gAZdfReXWdUxqg%3D' because it uses a relative path: exit code 1

Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetify-com/devbox/issues
 :~/git/box(develop)$ devbox version
0.13.2

giulianopz avatar Oct 03 '24 15:10 giulianopz

@giulianopz while we look into this, you can set DEVBOX_USE_VERSION=0.12.0 to unblock yourself.

savil avatar Oct 04 '24 00:10 savil

Thanks @savil. It seems that deleting the .devbox dir fixed the issue. When I opened the devbox shell, it downloaded all the packages again but I did not see that error.

giulianopz avatar Oct 04 '24 05:10 giulianopz