I recently took days to resolve my issue #30545 . Turns out the problem was a line-ending problem that made
makepkg error out.
makepkg reported the error just fine when I called it directly. But
pamac cli reported success. Can we make pamac return - or at least display - package install errors?