Open jackrosenthal opened 7 months ago
Hey @jackrosenthal , I couldn't reproduce this, could you share your /etc/makepkg.conf
and output of go version
?
I had the same issue.
Realized I had go v1.20 installed through homebrew. Uninstalling that with brew uninstall go
and yay -S go
got me v1.22 and yay updated without errors.
In my case, I eventually figured out that it was caused by a .git
directory located inside of a directory owned by root.
How I found it: I strace'd the build and eventually found this:
8.636 strace: Process 3224 attached
8.637 [pid 3224] chdir("/pkgbuild") = 0
8.637 [pid 3224] execve("/usr/bin/git", ["git", "status", "--porcelain"], 0xc0000d8820 /* 51 vars */) = 0
8.640 [pid 3224] write(2, "fatal: detected dubious ownershi"..., 162) = 162
An improvement that could be made: the build shouldn't suppress stderr of git. Would've figured this one out way earlier if the error message actually got printed.
Affected Version
12.3.0
Describe the bug
Reproduction Steps
pacman -S --needed --noconfirm git 'go>=1.19' 'pacman>5'
)makepkg
Expected behavior
Build completes succesfully
Output
See above