Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update/install from git repository #1729

Closed
assapir opened this issue Mar 17, 2022 · 5 comments
Closed

Unable to update/install from git repository #1729

assapir opened this issue Mar 17, 2022 · 5 comments

Comments

@assapir
Copy link

assapir commented Mar 17, 2022

Affected Version

yay v11.1.2 - libalpm v13.0.1

Describe the bug

When trying to install/update a devel package from github, it fails to install with the error

Fetching origin
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
error: could not fetch origin

This is due to the fact that git protocol seems not to be supported any more

Reproduction Steps

  1. run yay -S piaware-git
  2. accept everything

Expected behavior

Packages will be updated/install with latest commit

Output

==> Retrieving sources...
  -> Cloning piaware git repo...
Cloning into bare repository '/home/alarm/.cache/yay/piaware-git/piaware'...
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
==> ERROR: Failure while downloading piaware git repo
    Aborting...
 -> error downloading sources: piaware-git 
	 context: exit status 1 
	 

==> Making package: piaware-git 6.1.r2.g7c9a8d2-2 (Thu Mar 17 19:29:08 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning piaware git repo...
Cloning into bare repository '/home/alarm/.cache/yay/piaware-git/piaware'...
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
==> ERROR: Failure while downloading piaware git repo
    Aborting...
 -> error making: piaware-git
@grandchild
Copy link

Hi there, this seems to be a packaging problem, not a yay issue. You should report this on https://aur.archlinux.org/packages/piaware-git instead of here. The package has to simply change the git:// into https://.

To fix packaging mistakes (which happen all the time) yourself run

yay -S --editmenu piaware-git

and select yes when asked if you want to edit the PKGBUILD and change the git+git:// into git+https://. Fixed.

@assapir
Copy link
Author

assapir commented Mar 17, 2022

Thanks! I wonder: if I will add a code that does that inside yay, will you accept this PR?

@grandchild
Copy link

Why should yay do this? The package should be fixed. Yay isn't the only AUR helper out there. If yay were to fix this (How would this even work as a general case? This is a far to specific error.) it would only disincentivise the package maintainer to fix the actual issue.

Also I'm not a maintainer here, so I can't really speak for whether a change like this would be likely to get merged.

And most importantly: I can see you haven't reported the issue on the actual AUR package yet. That would be the first and most simple thing to do.

@txtsd
Copy link

txtsd commented Apr 24, 2022

This issue should probably be pinned because users will come looking for it.

@reissecup
Copy link

Hi there, this seems to be a packaging problem, not a yay issue. You should report this on https://aur.archlinux.org/packages/piaware-git instead of here. The package has to simply change the git:// into https://.

To fix packaging mistakes (which happen all the time) yourself run

yay -S --editmenu piaware-git

and select yes when asked if you want to edit the PKGBUILD and change the git+git:// into git+https://. Fixed.

i had the issue with a different package, when i tried this it says "Edit PKGBUILD with?" and i don't know what that's asking me for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants