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:
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.
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
.