English 中文(简体)
`nix run .` works, but `nix run github:myorg/myrepo` doesn t
原标题:

I have a flake.nix with an apps.default among its outputs. If I am in the project directory, the app runs when I run:

nix run .

But when I try to run it from a different machine:

nix run github:myorg/myrepo

I get the following error

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)

What am I doing wrong?

问题回答

If a repo is private, and you are not authenticated, github will respond with a 404.

Making the repo public solved the problem.





相关问题
GitHub SAML SSO ( cloud enterprise)

I wanted to integrate GitHub saml sso for the project. I have a custom IDP and from the SP initiated saml flow, like getting to the https://github.com/orgs/ORG-NAME/sso and then sso getting successful,...

How do I clone a github project to run locally?

I am trying to follow this railscast tutorial for authlogic - and it points to the source here - I have git installed - how do I replicate the source onto my localhost so that I can follow the ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...

热门标签