Open
Description
Current Behavior (bug)
Unable to add the prettier package using devbox add nodePackages.prettier@latest
.
Expected Behavior (fix)
The package gets added and is visible in the devbox.json
file.
Additional context
devbox version -v
Version: 0.0.0-dev
Platform: linux_amd64
Commit: none
Commit Time: unknown
Go Version: go1.21.4
Launcher:
devbox.json
{
"packages": [
"[email protected]",
"yarn@latest"
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}
Command Output
2023/12/05 02:07:30 findProjectDir: path is
2023/12/05 02:07:30 finding devbox.json in dir: ...
2023/12/05 02:07:30 findProjectDir: path is
2023/12/05 02:07:30 finding devbox.json in dir: ...
2023/12/05 02:07:30 findProjectDir: path is
2023/12/05 02:07:30 finding devbox.json in dir: ...
Ensuring nixpkgs registry is downloaded.
error: failed to extract archive (truncated gzip input)
(use '--show-trace' to show detailed location information)
Ensuring nixpkgs registry is downloaded: Fail
2023/12/05 02:07:32 running command: /nix/var/nix/profiles/default/bin/nix search --json github:NixOS/nixpkgs/e8b0430bc4c4235607ae102010dec2ba32e8c0ca#nodePackages.prettier --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure
2023/12/05 02:07:33 running command: /nix/var/nix/profiles/default/bin/nix search --json github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c#nodePackages.prettier@latest --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure
Info: Adding package "nodePackages.prettier@latest" to devbox.json
Ensuring nixpkgs registry is downloaded.
error: failed to extract archive (truncated gzip input)
(use '--show-trace' to show detailed location information)
Ensuring nixpkgs registry is downloaded: Fail
Error: There was an error installing nix packages
source: Command: /nix/var/nix/profiles/default/bin/nix flake prefetch nixpkgs/e8b0430bc4c4235607ae102010dec2ba32e8c0ca --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure: exit status 1
2023/12/05 02:07:34 Command stderr:
2023/12/05 02:07:34
ExecutionID:a4dcf8eb27d34bdaaa41c3a016c343aa
<nil>
2023/12/05 02:07:34 findProjectDir: path is
2023/12/05 02:07:34 finding devbox.json in dir: ...