Skip to content

Commit 4f8b9af

Browse files
committed
GitHub Actions gem installation fix for sass-embedded on ruby 3.1
1 parent 2f4a3d7 commit 4f8b9af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ndr_error.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Gem::Specification.new do |s|
4545
# https://bugs.ruby-lang.org/issues/19371
4646
s.add_development_dependency 'psych', '< 5'
4747

48+
# Workaround build issue on GitHub Actions with ruby <= 3.1 when installing sass-embedded
49+
# Versions 1.77.0 and above require ruby >= 3.2 for packaged x86_64-linux binaries
50+
# but say they're compatible with ruby 3.1.
51+
# 1.76.0 has a bug that was fixed in 1.77.1, which we can't use yet.
52+
# https://github.com/sass/dart-sass/issues/2239
53+
s.add_development_dependency 'sass-embedded', '~> 1.75.0' if RUBY_VERSION.start_with?('3.1')
54+
4855
s.add_development_dependency 'mocha'
4956
s.add_development_dependency 'test-unit', '~> 3.0'
5057

0 commit comments

Comments
 (0)