Skip to content

Commit e199a86

Browse files
committed
fix(stacks): build ruby 2.7 error
1 parent ee52e22 commit e199a86

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

stacks/ruby/make.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
RUBY_MAJOR=$(echo $STACK_VERSION | awk -F "." '{print $1"."$2}')
3+
14
set -eux; \
25
\
36
savedAptMark="$(apt-mark showmanual)"; \
@@ -11,7 +14,7 @@ set -eux; \
1114
; \
1215
rm -rf /var/lib/apt/lists/*; \
1316
\
14-
wget -O ruby.tar.gz "https://github.com/ruby/ruby/archive/refs/tags/v${STACK_VERSION//./_}.tar.gz"; \
17+
wget -O ruby.tar.gz https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR}/ruby-${STACK_VERSION}.tar.gz; \
1518
\
1619
mkdir -p /usr/src/ruby; \
1720
tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1; \

0 commit comments

Comments
 (0)