Repository navigation
Conversation
Go leaves module-cache trees read-only under yay's srcdir, so the next rebuild fails. Soften those trees before yay and warn instead of failing the whole update (omacom#13334). Co-authored-by: AnPod <AnPod@users.noreply.github.com>
cca0ba2 to
f7cca17
Compare
|
Thanks! Two notes:
Also, #13646 has the same diff as this PR, so one of the two can be closed. |
|
| printf '%s\n%s\n' "$GOFLAGS" "$*" >>"$FAKE_CALLS" | ||
| exit "${TEST_YAY_STATUS:-1}" |
There was a problem hiding this comment.
The fake yay never checks whether the caches are writable when it starts. The permission checks run afterward, so this test would still pass if cleanup moved after yay, even though the next rebuild would fail. Check the cache permissions inside the fake yay before it returns.
|
Thanks, 113310e covers both points. |
Summary
Go makes module-cache trees read-only (
dr-xr-xr-x). PKGBUILDs that configureGOMODCACHEunder$srcdirthen fail on the next rebuild when makepkg attempts to delete the previous build directory.In addition, one failing user-installed AUR package caused
omarchy updateto report that the entire update failed, even when all system packages and migrations had completed successfully.This:
chmod -R u+w).Fixes #13334
Testing
test/shell.d/update-aur-pkgs-test.shverifying cache permission fixes and failure reporting.bash test/shell.d/update-aur-pkgs-test.sh(4/4 passed).