`nix run .` 可以工作,但是 `nix run github:myorg/myrepo` 不行

问题描述 投票:0回答:1

我有一个

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 nix flake
1个回答
0
投票

如果存储库是私有的,并且您未经过身份验证,github 将返回 404 响应。

公开存储库解决了问题。

© www.soinside.com 2019 - 2024. All rights reserved.