error installing package [email protected]

Aperta
#2,738 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start with the Nix invocation in the debug log: internal/nix/store.go runs path-info for the pinned nixpkgs nodejs-16_x; the failure shown is a deprecated URL literal in nixpkgs, not a Devbox source file. Read how Devbox configures Nix features in nix/nix.go and reproduce with the listed devbox add command. Done means installing [email protected] succeeds with this Nix/Lix behavior; the issue does not name a test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug p3 processed triage unrelated
What happened?

When trying to ADD [email protected] to a project there is a error on ca derivations

Steps to reproduce
  1. devbox init
  2. DEVBOX_DEBUG=1 devbox add [email protected]
Command

add

devbox.json
{
    "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json",
    "packages": [],
    "shell": {
      "init_hook": [
        "echo 'Welcome to devbox!' > /dev/null"
      ],
      "scripts": {
        "test": [
          "echo \"Error: no test specified\" && exit 1"
        ]
      }
    }
  }
Devbox version

0.16.0

Nix version

nix (Lix, like Nix) 2.93.3 System type: x86_64-linux Additional system types: aarch64-linux, i686-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/max/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/max/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/max/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/max/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/max/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/2ldavd7sprmnfg06n6mj20lfrvmkvg4z-gnome-settings-daemon-48.1/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/jsm35mkk7kp6yd268rfwhp4f1bs0h397-lix-2.93.3/share

What system does this bug occur on?

Linux (x86-64)

Debug logs

time=2025-11-01T16:28:34.999-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-11-01T16:28:35.000-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-11-01T16:28:35.000-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/max/Projetos-DevBox/devbox.json dur=2.212241ms
time=2025-11-01T16:28:35.000-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-11-01T16:28:35.000-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-11-01T16:28:35.000-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/max/Projetos-DevBox/devbox.json dur=143.26µs
time=2025-11-01T16:28:35.001-03:00 level=DEBUG source=go.jetify.com/devbox/nix/nix.go:143 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug"
time=2025-11-01T16:28:35.024-03:00 level=DEBUG source=go.jetify.com/devbox/nix/nix.go:143 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug" cmd.path=/run/current-system/sw/bin/nix cmd.pid=45321 cmd.code=0 cmd.dur=23.10268ms
time=2025-11-01T16:28:35.025-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-11-01T16:28:35.025-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-11-01T16:28:35.025-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/max/Projetos-DevBox/devbox.json dur=191.265µs
time=2025-11-01T16:28:35.025-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=nodejs mode=auto
time=2025-11-01T16:28:35.025-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=nodejs mode=auto
Info: Adding package "[email protected]" to devbox.json
time=2025-11-01T16:28:35.432-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=nodejs mode=auto
time=2025-11-01T16:28:35.432-03:00 level=DEBUG source=go.jetify.com/devbox/internal/plugin/plugin.go:85 msg="creating files for package" [email protected]
time=2025-11-01T16:28:35.432-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=nodejs mode=auto
time=2025-11-01T16:28:35.432-03:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/store.go:40 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' path-info 'github:NixOS/nixpkgs/0111666954f772565cd83c3b7bea179e7808515c#nodejs-16_x' --json --impure"
time=2025-11-01T16:28:35.589-03:00 level=DEBUG source=go.jetify.com/devbox/internal/nix/store.go:40 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' path-info 'github:NixOS/nixpkgs/0111666954f772565cd83c3b7bea179e7808515c#nodejs-16_x' --json --impure" cmd.path=/run/current-system/sw/bin/nix cmd.stderr="URL literals are deprecated, allow using them with --extra-deprecated-features url-literals" cmd.pid=45328 cmd.code=1 cmd.dur=156.890934ms

Error: error installing package [email protected]
source: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' path-info 'github:NixOS/nixpkgs/0111666954f772565cd83c3b7bea179e7808515c#nodejs-16_x' --json --impure: URL literals are deprecated, allow using them with --extra-deprecated-features url-literals: exit code 1

time=2025-11-01T16:28:35.589-03:00 level=ERROR source=go.jetify.com/devbox/internal/boxcli/midcobra/debug.go:68 msg="command error" stderr="warning: The ca-derivations experimental feature is deprecated and will be removed in Lix 2.94. See https://git.lix.systems/lix-project/lix/issues/815 for more details.\nfetching github input 'github:NixOS/nixpkgs/0111666954f772565cd83c3b7bea179e7808515c'\nerror:\n … while evaluating an expression to select 'drvPath' on it\n at «internal»:1:552:\n … while evaluating strict\n at «internal»:1:552:\n (stack trace truncated; use '--show-trace' to show the full trace)\n\n error: URL literals are deprecated, allow using them with --extra-deprecated-features url-literals\n at /nix/store/4aiaxj04ncpj46sskcqggdfj70rlram9-source/pkgs/top-level/perl-packages.nix:14155:18:\n 14154| meta = {\n 14155| homepage = https://github.com/TJC/Test-postgresql;\n | ^\n 14156| description = "PostgreSQL runner for tests";\n" execid=9ce8b6bbbc4c41cc9805311ec65c9e30 stack=
time=2025-11-01T16:28:35.590-03:00 level=ERROR source=go.jetify.com/devbox/internal/boxcli/midcobra/debug.go:70 msg="command error" execid=9ce8b6bbbc4c41cc9805311ec65c9e30 stack=
time=2025-11-01T16:28:35.590-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-11-01T16:28:35.590-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-11-01T16:28:35.590-03:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/max/Projetos-DevBox/devbox.json dur=138.353µs

Lingua principale
Go
Stelle
12.4k
Fork
358
Merge medio
17h 12m
PR unite (30g)
31

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jetify-com/devbox

Tutte le issue di jetify-com/devbox

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.