Help me figure out: fatal: could not read Username for 'https://git.mydomain.tld': No such device or address

I reported this issue a few weekends ago in the Gitter channel (seems to be gone now?)

I’ve upgraded to the latest drone and gitea images and keep running into:

+ git init
Initialized empty Git repository in /drone/src/git.mydomain.tld/prologic/hello-go/.git/
+ git remote add origin https://git.mydomain.tld/prologic/hello-go.git
+ git fetch --no-tags origin +refs/heads/master:
fatal: could not read Username for 'https://git.mydomain.tld': No such device or address
exit status 128

Looks like there are other folks running in to this. The repo is private and I seem to recall some discussions around this functionality breaking in gitea somewhere but I haven’t a clue how to help debug this.

Please help me help Drone fix this!

The issue was that Gitea introduced a regression in their codebase (or possibly a breaking change that makes it incompatible with drone). Drone continues to work with Gogs and others. This is the referenced Gitea discussion:

See this comment where the author reports that x-oauth-basic credentials no longer work. Note that this worked in previous versions and continues to work with gogs. This is what leads me to believe it is a Gitea change or regression.

If you don’t mind, let’s continue this discussion in the original thread