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

Devel package with moved repository resut in error for the source update #1244

Open
Porkepix opened this issue Sep 18, 2024 · 5 comments
Open

Comments

@Porkepix
Copy link

Porkepix commented Sep 18, 2024

Affected Version

paru v2.0.3.rebuild.1.r1.g90656a9 - libalpm v15.0.0

Description

Have you checked previous issues? Yes
When updating a devel (-git) package where the source repo moved (but have a redirection in place, although the PKGBUILD is updated anyway), paru refuse to update the repo because it says the clone isn't coming from the same repo/place.

This might be intentional for security reasons or whatever, but I think it was still worth an issue and getting an answer regarding if it should have a different behavior or not.

Output

Include the FULL output of any relevant commands/configs

Don't cut parts of the input always include the FULL thing

paru.conf and pacman.conf are usually always relevant

==> Retrieving sources...
==> ERROR: /home/clement/.cache/paru/clone/fractal-git/fractal is not a clone of https://gitlab.gnome.org/World/fractal.git
    Aborting...
error: failed to download sources for 'fractal-git-8.r61.gd4b36a7-1':

Repo used to be located at https://gitlab.gnome.org/GNOME/fractal.git and cache have this remote.

So sure, cache could be erased, or remote manually updated, but is it how it should be, or should paru consider doing things by itself?

EDIT: I was also looking at https://github.com/Morganamilo/paru/blob/master/po/paru.pot in the hope of finding this string to locate where in the code could this be happening (even though I don't really have hopes to fix it), but wasn't able to find it, so is it paru, or another binary who's producing this error?
I wasn't sure about how to get more logs to locate this too.

@Morganamilo
Copy link
Owner

This is a check makepkg does on git sources. Delete ~/.cache/paru/clone/fractal-git/fractal and makepkg will clone the repo from the new source on next run.

@Porkepix
Copy link
Author

This is a check makepkg does on git sources. Delete ~/.cache/paru/clone/fractal-git/fractal and makepkg will clone the repo from the new source on next run.

Yes the manual fix isn't very hard to do, but I thought it was something paru could offer to do on its own by asking the question to user, even more when a redirection exists?

@Morganamilo
Copy link
Owner

It's makepkg doing it so paru doesn't even know what the issue is just that makepkg threw an error.

@Porkepix
Copy link
Author

It's makepkg doing it so paru doesn't even know what the issue is just that makepkg threw an error.

And that error cannot be caught and then acted upon? (Dunno if we have the detail of the error?)

@Morganamilo
Copy link
Owner

I guess we could check ourselves if the remotes mismatch before running makepkg and just delete the repo if so and let makepkg redownload it when it runs.

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

No branches or pull requests

2 participants