brew test-bot --only-setup fails on ubuntu-22.04-arm partner runner image
#6615
-
|
This worked yesterday, but is failing today. I found this related discussion (ruby/rubygems#7983), which seems to indicate that updating |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
To workaround the issue, I added the following to my workflow - name: Fix ruby gems directory permissions
if: matrix.os == 'ubuntu-22.04-arm'
run: |
# Fix ownership first so current user can write, then remove world-writable
BUNDLE_DIR="$(brew --prefix)/Homebrew/Library/Homebrew/vendor/bundle/ruby"
if [ -d "${BUNDLE_DIR}" ]; then
# Take ownership so we can write to it
sudo chown -R "$(whoami):$(id -gn)" "${BUNDLE_DIR}"
# Remove world-writable permissions to satisfy Bundler security
chmod -R o-w "${BUNDLE_DIR}"
echo "Fixed ownership and permissions for ${BUNDLE_DIR}"
fiThis is after the It's a hack and I used copilot to solve it. Hopefully there's a better solution available. I don't think the hack is really required since this worked on December 18th. |
Beta Was this translation helpful? Give feedback.
To workaround the issue, I added the following to my workflow
T…