aurutils / aurutils

Helper tools for the AUR.
ISC License
943 stars 89 forks source link

aurutils fails when looking for orderfile in wrong place /temp${HOME}/.config/aurutils/sync/orderfile #1167

Closed WildPenquin closed 1 month ago

WildPenquin commented 2 months ago

Hi,

Running aurutils sync -u fails because aurutils is looking for orderfile in the wrong place.

I can reproduce this with aurutils and aurutils-git from the aur.

Seems like my home directory name is prepended by /temp for some reason (without / after /temp).

AUR_DEBUG=1 aur <name> <arguments> >aurutils.log 2>&1
[aurutils.log](https://github.com/user-attachments/files/15860048/aurutils.log)
Earnestly commented 2 months ago

This error is coming from git. Do you use any wrappers that change the behaviour of git? (E.g. type -P git in a bash shell)

WildPenquin commented 2 months ago

No, I did not use any wrappers.

It seems that the error was caused by the PKGBUILD of alpine. I removed the cache of alpine, and I can not reproduce anymore.

AladW commented 1 month ago

I guess /temphome was set by git config for some reason. aur-sync would only do it based on the value of $HOME, when a package is cloned for the first time. So HOME=/temphome/... aur sync alpine would break future calls of aur sync alpine.