error installing package [email protected]
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go
- 领域
- build-system, devtools
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
What happened?
When trying to ADD [email protected] to a project there is a error on ca derivations
Steps to reproduce
- devbox init
- 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
- 主要语言
- Go
- 星标
- 12.4k
- 派生
- 358
- 平均合并
- 17 小时 12 分钟
- 30 天内合并 PR
- 31
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jetify-com/devbox 的其他 Issue
-
feature triage
难度 2/5 1-3 小时 新手友好度 62/100
jetify-com/devbox#3038 ·
维护者通常 1 天内回复
-
bug p4 package processed triage unrelated
难度 2/5 1-3 小时 新手友好度 66/100
jetify-com/devbox#2898 · 2 条评论 ·
维护者通常 1 天内回复
-
p4 processed unrelated
难度 2/5 1-3 小时 新手友好度 65/100
jetify-com/devbox#2750 · 1 条评论 ·
维护者通常 1 天内回复
-
Storyden未关闭p4 package processed triage unrelated
难度 2/5 1-3 小时 新手友好度 62/100
jetify-com/devbox#2685 · 1 条评论 ·
维护者通常 1 天内回复
-
looks easy p4 package processed triage
难度 2/5 1-3 小时 新手友好度 60/100
jetify-com/devbox#2656 · 1 条评论 ·
维护者通常 1 天内回复
查看 jetify-com/devbox 的全部 Issue
相似的 Issue
-
Query cache: a failed cache page read leaves the set request's read lock held, so the scan hangs未关闭
难度 2/5 1-3 小时 新手友好度 78/100
turbot/steampipe-plugin-sdk#986 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
router-for-me/CLIProxyAPI#7307 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
betterleaks/betterleaks#460 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
openmcp-project/service-provider-crossplane#330 ·
维护者通常 1 天内回复