Closed ethanneff closed 1 year ago
Current solution
install_android_deps:
steps:
- restore_cache:
key: bundle-v1-{{ checksum "android/Gemfile.lock" }}-{{ arch }}
+ # this step can be removed if https://github.com/CircleCI-Public/cimg-android/issues/82 is ever resolved
+ - run:
+ name: Fix Ruby permissions for Android
+ command: sudo chmod -R a+w /var/lib/gems/ /usr/local/bin
- run:
command: bundle install
working_directory: android
- save_cache:
key: bundle-v1-{{ checksum "android/Gemfile.lock" }}-{{ arch }}
paths:
- vendor/bundle
Hi @ethanneff what are the other 2 images that you are using in these builds? Are they other variants of the android convenience image or different images entirely?
I just revisited this and realized that I entirely misread this, I was just able to recreate this and as a result I added the proposed chmod solution to the dockerfile template and included it in the PR for this month.
June's image includes the chmod step to prevent this bundle issue from happening, closing this issue as a result. Please reopen this if that does not fix the issue experienced.
Using orb circleci/android@2.3.0
with image cimg/android:2023.12-node
I had to add this command before running bundle install
:
sudo chown -R circleci:circleci /var/lib/gems && sudo chmod -R 755 /var/lib/gems
I had to run this command first before running bundle install
, and it worked for me.
- run:
name: Fix Ruby permissions
command: sudo chown -R circleci:circleci /var/lib/gems /usr/local/bin && sudo chmod -R 755 /var/lib/gems /usr/local/bin
Executors
I am running 3 different builds, only
cimg/android:2023.05.1-node
is failingCommand
Error