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

Cannot install new ruby version with rbenv #80

Closed
kelianClerc opened this issue Jul 29, 2020 · 1 comment · Fixed by #81
Closed

Cannot install new ruby version with rbenv #80

kelianClerc opened this issue Jul 29, 2020 · 1 comment · Fixed by #81
Labels
bug Something isn't working

Comments

@kelianClerc
Copy link

kelianClerc commented Jul 29, 2020

Cannot access install command for rbenv from a github action. This command is well installed via

# Install ruby-build (rbenv plugin)
RUN mkdir -p "$RBENV_HOME"/plugins
RUN git clone https://github.com/rbenv/ruby-build.git "$RBENV_HOME"/plugins/ruby-build

But when trying to run it from a github action, I've got the following error :
https://github.com/faberNovel/faberdemo-android/runs/923377141?check_suite_focus=true

According to stackoverflow, to load plugins, a configuration is missing
https://stackoverflow.com/a/24249090/7301610

@sjcqs
Copy link
Contributor

sjcqs commented Jul 29, 2020

After some digging with @kelianClerc:

  • Github Action is changing HOME env var to /github/workspace
    Thus, rbenv plugins are not available anymore.

To fix it RBENV_ROOT need to be set.

@sjcqs sjcqs mentioned this issue Jul 29, 2020
@sjcqs sjcqs added the bug Something isn't working label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants