Trying to pack my Ruby app, I get a lot of errors like this:
Bundler::PermissionError There was an error while trying to write
to `/opt/ruby/lib/ruby/gems/3.3.0/cache/nio4r-2.7.1.gem`. It is
likely that you need to grant write permissions for that path.
…which is nothing surprising, I myself removed the permissions from my user account. Maybe the ruby development thinks it differently, but honestly I find the idea of an all-user writable gem cache path hilarious.
How can I use my own gem cache path for everything? (Including bundle package
, so a bundle install --local
is not okay). Note, this question is asking some different one (OP wants to use a local dir as gem cache, I want to use the system gem directory in another place, anyways no answers written there works for me, I still get these errors).