Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RVM not working anymore correctly - Ruby not found #989

Open
shayani opened this issue Dec 4, 2022 · 1 comment
Open

RVM not working anymore correctly - Ruby not found #989

shayani opened this issue Dec 4, 2022 · 1 comment

Comments

@shayani
Copy link

shayani commented Dec 4, 2022

Bug description

Suddenly, without any changes, Gitpod workspace doesn`t find the ruby executable anymore. It worked for months and since last week, stopped working.

Steps to reproduce

# .gitpod.Dockerfile
FROM gitpod/workspace-full:2022-09-11-15-11-40
USER gitpod

# Install Ruby version 2.6.1 and set it as default
RUN echo "gem: --no-document" >> ~/.gemrc
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
RUN bash -lc "rvm install ruby-2.6.1 && \
              rvm use ruby-2.6.1 --default && \
              gem update --system 3.3.26"
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
# .gitpod
image:
  file: .gitpod.Dockerfile

tasks:
  - name: Setup application
    init: |
      gem update --system 3.3.26
      gem install bundler:2.3.26
      gem install rubocop rubocop-rails rubocop-performance solargraph
      bundle install 
    command: |
      bundle exec rails server -b 0.0.0.0 -p 3000

I get the error when trying to excute bundler:
/workspace/.rvm/ruby-2.6.1/bin/bundle: 6: exec: /workspace/.rvm/ruby-2.6.1/bin/ruby: not found

Workspace affected

All workspaces in my private repo

Expected behavior

ruby executable should be found. It exists on /home/gitpod/.rvm/ruby-2.6.1/bin, but doesn't at /workspace/.rvm/ruby-2.6.1/bin

Example repository

No response

Anything else?

No response

Front logo Front conversations

@shayani
Copy link
Author

shayani commented Dec 5, 2022

Hi @jimmybrancaccio. Did you have a chance to take a look? What's your opinion?

@axonasif axonasif transferred this issue from gitpod-io/gitpod Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant