-
Notifications
You must be signed in to change notification settings - Fork 18
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
aurpublish fails with: fatal: cache for already exists! #30
Comments
Can you try cloning this repo to a fresh location and publish from there? That should tell us whether it's something in the repo history (as exists in the remote) or actually a problem with the subtree cache locally. |
A fresh location (and
https://github.com/aminvakil/aur/actions/runs/7313903426/job/19926019741 |
I remember having the same error in the past after unintentionally rewriting the Git history of the subtree. I think I solved it by setting up aurpublish and adding each package to the subtree again 💀 |
Ah, so I would lost all history in github? |
I can replicate this locally too,
even after |
I think your options are either to delete and re-add the subtree (min two commits) or backtrack to before whatever commit in your current history rewrote something in the subtree. Probably not far back depending on your workflow. You can use that fresh clone and |
I bisected this in git itself, to commit git/git@d2f0f81 Before this commit, the split verb prints out:
but succeeds. It appears that graph traversal which encounters multiple subtree joins is broken, I would report a bug to the git mailing list. Simple reproducer:
|
@alerque @orhun @eli-schwartz Thanks for taking a look at this, I've And I've kept https://github.com/aminvakil/aur/tree/broken_subtree before doing this, in case anyone wanted to reference to it for any reason (I think Eli's reproducer suffices, but anyway). I would keep this open until the issue is fixed in git (I couldn't find Eli's mail in https://public-inbox.org/git/, not sure if it was the correct place to look for it though), but please close this in case it isn't necessary. |
It is the correct place to look, but when I said "I would report a bug to the git mailing list" that was advice, not "I have reported". :P However, I've decided to report it myself anyway: https://public-inbox.org/git/[email protected]/T/ |
Thanks for doing this. I have little knowledge about git subtrees and couldn't report as good enough as you. |
https://github.com/aminvakil/aur/actions/runs/7310240478/job/19918672631
Previous to this I've accidentally had a merge commit adding this subtree to master branch, but I've dropped that commit and I still get this, I don't know what to do.
Nothing is changing, just
aurpublish zoiper-bin
which is a package I'm maintaining.The text was updated successfully, but these errors were encountered: