You are not logged in.

#1 2021-02-17 22:47:30

elektronek
Member
Registered: 2020-06-27
Posts: 7

Wild yay error while trying to install git package

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

#2 2021-02-17 23:28:17

sammiev
Member
Registered: 2018-12-22
Posts: 42

Re: Wild yay error while trying to install git package

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

#3 2021-02-17 23:57:53

elektronek
Member
Registered: 2020-06-27
Posts: 7

Re: Wild yay error while trying to install git package

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

#4 2021-02-18 00:50:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,313
Website

Re: Wild yay error while trying to install git package

And if you remove Yay from the equation, and just build it with makepkg?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2021-02-18 07:18:39

ayekat
Member
Registered: 2011-01-17
Posts: 1,446
Website

Re: Wild yay error while trying to install git package

elektronek wrote:

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)


{,META,RE}PKGBUILDSpacman-hacks (includes makemetapkg and remakepkg) │ dotfiles

Offline

#6 2021-04-15 21:40:13

elektronek
Member
Registered: 2020-06-27
Posts: 7

Re: Wild yay error while trying to install git package

jasonwryan wrote:

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

#7 2021-04-15 22:05:10

loqs
Member
Registered: 2014-03-06
Posts: 13,296

Re: Wild yay error while trying to install git package

What is the output of

type -a git

Offline

#8 2021-04-15 22:28:08

elektronek
Member
Registered: 2020-06-27
Posts: 7

Re: Wild yay error while trying to install git package

type -a git
git is /usr/bin/git

Offline

#9 2021-04-15 22:46:59

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,052

Re: Wild yay error while trying to install git package

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

#10 2021-04-15 22:59:20

elektronek
Member
Registered: 2020-06-27
Posts: 7

Re: Wild yay error while trying to install git package

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

#11 2021-04-16 11:27:32

ayekat
Member
Registered: 2011-01-17
Posts: 1,446
Website

Re: Wild yay error while trying to install git package

elektronek wrote:
[…]
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)


{,META,RE}PKGBUILDSpacman-hacks (includes makemetapkg and remakepkg) │ dotfiles

Offline

Board footer

Powered by FluxBB