Error with private repositories
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
:wave:
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 :pray: