Skip to content

Conversation

@tjgreen42
Copy link
Collaborator

Summary

  • Fixes the zip archive creation failure in the AMD64 build due to permission denied error
  • The Docker container runs as root, creating dist/ directory owned by root
  • Added chown command to fix directory ownership before creating zip archive

Issue

The v0.0.2 release workflow failed with:

zip I/O error: Permission denied
zip error: Could not create output file (pg-textsearch-v0.0.2-pg17-amd64.zip)

Testing

The fix adds sudo chown -R $USER:$USER dist/ after the Docker build completes to ensure the GitHub Actions runner user can write to the directory.

This should allow the release workflow to complete successfully.

The Docker build runs as root, creating the dist/ directory with root ownership.
When the zip command runs outside Docker, it fails with permission denied.
Added chown to fix ownership after Docker build completes.
@tjgreen42 tjgreen42 merged commit 3ea999e into main Oct 18, 2025
10 checks passed
@tjgreen42 tjgreen42 deleted the fix-release-permissions branch October 18, 2025 17:08
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.

2 participants