【发布时间】:2020-07-29 10:10:06
【问题描述】:
错误文本:
neo@nixos ~/F/nixpkgs> nix-build -A haskellPackages.lambdabot-trusted
these derivations will be built:
/nix/store/wf447rqgs02yxd4p1lazfzxijmyjc46h-lambdabot-139af15.drv
/nix/store/437rz7m2hxl2p7lyla3zml8yjhs30w3k-lambdabot-trusted-5.2.drv
building '/nix/store/wf447rqgs02yxd4p1lazfzxijmyjc46h-lambdabot-139af15.drv'...
exporting git@github.com:lambdabot/lambdabot.git (rev 139af15281e815c79596ec1336b72c9ab416ba92) into /nix/store/qjb9kx6nviq2pn8v8yvyj9gypj0nhn89-lambdabot-139af15
Initialized empty Git repository in /nix/store/qjb9kx6nviq2pn8v8yvyj9gypj0nhn89-lambdabot-139af15/.git/
Could not create directory '/home/neo/.ssh'.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Could not create directory '/home/neo/.ssh'.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Unable to checkout 139af15281e815c79596ec1336b72c9ab416ba92 from git@github.com:lambdabot/lambdabot.git.
builder for '/nix/store/wf447rqgs02yxd4p1lazfzxijmyjc46h-lambdabot-139af15.drv' failed with exit code 1
cannot build derivation '/nix/store/437rz7m2hxl2p7lyla3zml8yjhs30w3k-lambdabot-trusted-5.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/437rz7m2hxl2p7lyla3zml8yjhs30w3k-lambdabot-trusted-5.2.drv' failed
目录/home/neo/.ssh 存在(所以这个错误对我来说毫无意义:Could not create directory '/home/neo/.ssh'.),它包含我用来推送到 GitHub 的密钥。
它尝试连接到上面的 GitHub 存储库不是我拥有的,但它是公共的,仅用于从中读取。
有什么建议可以解决这个问题吗?
【问题讨论】:
-
您的 nixpkgs 在哪个版本上?这适用于 754763ff4ba
-
@JappieKerk 主分支,SHA 7b20f79df38b34ae3f358938ce87759ecb47eaab
-
依赖 Nix 构建能够访问 nix 存储之外的文件不是一个好习惯,因为构建可以由
nix-daemon以不同的用户身份运行,或者在无法访问文件的沙箱中运行系统(我认为后者是你的问题)。