You are not logged in.
I'm getting a really weird error that I can't find anything about on the internet when I try to install a git package using yay. When it gets to the point "cloning into 'package-git' " fatal error occurs. Somehow a path gets stuck to the github url and error looks like this:
fatal: unable to access 'https://github.comhome/user/.cache/yay/ … ckage-git/': Could not resolve host: github.comhome
Offline
What package were you trying to install.
There is no such address as github.comhome
You really left no info at all for anyone to help you.
Post everything so maybe someone could actually help you.
Offline
This happens with every git package. Today for example I tried to install awesome-git so error looks like this
Cloning into 'awesome-git'...
fatal: unable to access 'https://github.comhome/username/.cache/ … esome-git/': Could not resolve host: github.comhome
==> ERROR: Failure while creating working copy of awesome-git git repo
Aborting...
It's trying to fetch github.comhome because package directory is somehow stuck to the url
github.com + home/username/... = github.comhome
You see?
Offline
And if you remove Yay from the equation, and just build it with makepkg?
Offline
It's trying to fetch github.comhome because package directory is somehow stuck to the url
github.com + home/username/... = github.comhome
Yes, but more importantly:
https://github.com/awesomeWM/awesome.git
becomes
________________________
https://github.comhome/username/.cache/yay/awesomeWM/awesome.git
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
(just in case it isn't obvious enough yet)
Offline
And if you remove Yay from the equation, and just build it with makepkg?
same error
makepkg -fsri
==> Making package: awesome-git 4.3.862.g7a759432d-1 (Thu Apr 15 23:36:10 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating awesome-git git repo...
Fetching origin
==> Validating source files with md5sums...
awesome-git ... Skipped
==> Extracting sources...
-> Creating working copy of awesome-git git repo...
Cloning into 'awesome-git'...
fatal: unable to access 'https://github.comhome/user/awesome-git/awesome-git/': Could not resolve host: github.comhome
==> ERROR: Failure while creating working copy of awesome-git git repo
Aborting...
I've tried with many things and this happens every time makepgb clones a repo, no matter what it is.
Offline
What is the output of
type -a git
Offline
type -a git
git is /usr/bin/git
Offline
What happens if you try to
git clone https://github.com/awesomeWM/awesome.git
What is in your gitconfig?
git --no-pager config -l
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
normal git clone works fine
git --no-pager config -l
user.email=
user.name=
url.git@github.com:.insteadof=https://github.com/
url.https://User:xxx@github.com.insteadof=https://github.com
url.https://:@github.com.insteadof=/
core.editor=vim
(I removed my real github data)
I deleted those 3 lines with "insteadof" and it works!
Thank you!
Offline
[…] url.git@github.com:.insteadof=https://github.com/ url.https://User:xxx@github.com.insteadof=https://github.com url.https://:@github.com.insteadof=/
Do you need these lines? What if you remove them? (my bet is on the first line causing the "missing slash" issue)
--edit, oops, missed the part where you removed them…
Last edited by ayekat (2021-05-02 19:03:50)
Offline