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

One one machine I get authorization errors from github #51

Open
DougC opened this issue Oct 28, 2022 · 0 comments
Open

One one machine I get authorization errors from github #51

DougC opened this issue Oct 28, 2022 · 0 comments

Comments

@DougC
Copy link

DougC commented Oct 28, 2022

So this issue probably doesn't belong here, as I'm not sure it's directly an sbt-gihub-packages problem, but I'm not sure where else to start and am looking for some idea.

I have a laptop (MacOS) that constantly gets "unauthorised" responses from github when trying to do sbt update to fetch libraries with sbt-github-packages.

The exact same code works fine on other machines (another mac, builds on various platforms, etc).

I have the exact same .gitconf file on both this laptop and my desktop (they md5 hash as identical so not even any whitespace differences) with the same github token. It also doesn't matter if I supply the token via an env var.

Both are using the same version of the jdk, sbt and scala. And if I run the sbt build in a docker build on the laptop in question (with a script that extracts the token from the .gitconf file and passes it in) it retrieves the libraries just fine.

It's been driving me nuts for months now (and I'm now at the point where I have put together a docker container that will pull the libraries and populate the coursier cache on my local machine with them!).

Does anyone have any suggestions for what else might be different in the environments that could be causing this?

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

1 participant