ocaml-opam/opam-publish

opam publish token generation did not work

mcclure opened this issue · 4 comments

Today I attempted to run opam publish. I entered my Github username and password to generate a token. I got this error:

image

I do not know what this means. I don't know if this is a global github thing or if it is something special about my account. My username and password were correct. I successfully used opam publish about two months ago, but later deleted my .opam.

I was able to make opam publish work by manually generating a token, but I think this error should be looked into anyway.

AltGr commented

Thanks for reporting! Have you enabled 2FA in github? And, more importantly, what version of ocaml-github are you using (opam show github -f version) ? This is the library that drives the authentication and raises this error, so you might want to also check https://github.com/mirage/ocaml-github/issues , if you're interested.

2FA was not on while I was performing the tests. I could log in with l/p through the web interface.

opam show github -f version is 4.3.2.

The issue seems to be related to #119, and is due to the GitHub Authorizations API being removed. It is now necessary to generate manually your personal access token.

AltGr commented

Fixed by #121 (Github dropped support anyway)
Thanks for reporting, still :)