我有一个
flake.nix
,其输出中有一个 apps.default
。如果我在项目目录中,则应用程序会在我运行时运行:
nix run .
但是当我尝试从另一台机器运行它时:
nix run github:myorg/myrepo
我收到以下错误
error: unable to download 'https://api.github.com/repos/myorg/myrepo/commits/HEAD': HTTP error 404
response body:
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/commits/commits#get-a-commit"
}
(use '--show-trace' to show detailed location information)
我做错了什么?
如果存储库是私有的,并且您未经过身份验证,github 将返回 404 响应。
公开存储库解决了问题。