Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with private repositories #141

Open
sandzwerg opened this issue Jul 7, 2022 · 1 comment
Open

Error with private repositories #141

sandzwerg opened this issue Jul 7, 2022 · 1 comment

Comments

@sandzwerg
Copy link

I'd like to use this wonderful tool also for private github enterprise instances. However, if I try it, I get an error.

bin install --debug <internal-GHES>/cc/spore
   • debug logs enabled, version: 0.15.1
commit: 9937e08209b8d266e2266d4454205acb4fdfe8e7
built at: 2022-07-04T19:52:31Z
built by: goreleaser

   • Config directory is: /home/<myuser>/.config/bin
   • Download path set to /home/<myuser>/bin
   • Getting latest release for cc/spore
   ⨯ command failed            error=repository cc/spore does not have releases

As the instance is only available with a login that is not surprisingly. But even if I state a TOKEN it fails and the error message indicates that it's still asking github.com

GITHUB_AUTH_TOKEN=<mytoken> bin install --debug <internal-GHES>/cc/spore
   • debug logs enabled, version: 0.15.1
commit: 9937e08209b8d266e2266d4454205acb4fdfe8e7
built at: 2022-07-04T19:52:31Z
built by: goreleaser

   • Config directory is: /home/<myuser>/.config/bin
   • Download path set to /home/<myuser>/bin
   • Getting latest release for cc/spore
   ⨯ command failed            error=GET https://api.github.com/repos/cc/spore/releases/latest: 401 Bad credentials []

I understand if that is no priority, but would love if this could be supported. Thanks a lot <3

@marcosnils
Copy link
Owner

👋

I'd like to support Github enterprise, but since I don't have access to an environment where I can test bin against, it's going to be a bit difficult for me to add support to it. However, I'd suppose that since I'm using the github golang client in bin, it "should" just work if I change the target host to be the GHES server instead of api.github.com.

I'll give it a try and since that shouldn't be difficult and I'd need your help to test it out 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants