Skip to content

build.sh: fix cache save in manylinux runs#82

Merged
adeebshihadeh merged 1 commit into
masterfrom
cache-perms
May 10, 2026
Merged

build.sh: fix cache save in manylinux runs#82
adeebshihadeh merged 1 commit into
masterfrom
cache-perms

Conversation

@adeebshihadeh
Copy link
Copy Markdown
Contributor

manylinux Docker runs as root and creates files in the bind-mounted workspace owned by UID 0. The host runner user can't read all of them (e.g. `curl-src/config.guess`, `curl-src/config.sub`), so `actions/cache`'s post-job `tar` fails with `Cannot open: Permission denied` and the cache save is skipped. Every CI run has been cold cache as a result — verified on master CI logs.

Fix: chown the workspace back to the host UID at the end of the in-container build.

Container runs as root and creates files owned by UID 0 in the bind-
mounted workspace. The host runner user can't read some of them
(e.g. curl-src/config.{guess,sub}), so actions/cache's tar fails with
'Cannot open: Permission denied' and the cache save is skipped. Every
CI run was cold cache as a result.
@adeebshihadeh adeebshihadeh merged commit 6577fa8 into master May 10, 2026
11 checks passed
@adeebshihadeh adeebshihadeh deleted the cache-perms branch May 10, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant