Skip to content

Commit 0957c32

Browse files
committed
Workaround for install Ruby 4.0.0 with RVM
1 parent cd3fafd commit 0957c32

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.devcontainer/codespaces/onCreateCommand.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
RUBY_VERSION=4.0.0
1+
# Workaround for install Ruby 4.0.0 with RVM
2+
rvm list
3+
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
4+
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
5+
rvm get master
6+
rvm list known
7+
8+
# Install Ruby
29
rvm install 3.4.6
3-
rvm install $RUBY_VERSION
4-
rvm --default use $RUBY_VERSION
10+
rvm install 4.0.0
11+
rvm --default use 4.0.0
12+
rvm list
13+
ruby --version
514

615
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/google-chrome.deb
716
sudo apt update && sudo apt install -y /tmp/google-chrome.deb && rm /tmp/google-chrome.deb

0 commit comments

Comments
 (0)