Skip to content

Commit 4ed6a75

Browse files
committed
GitHub Actions gem installation fix for sass-embedded on ruby 3.1
1 parent 96e92b0 commit 4ed6a75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ndr_ui.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Gem::Specification.new do |spec|
4242
# https://bugs.ruby-lang.org/issues/19371
4343
spec.add_development_dependency 'psych', '< 5'
4444

45+
# Workaround build issue on GitHub Actions with ruby <= 3.1 when installing sass-embedded
46+
# Versions 1.77.0 and above require ruby >= 3.2 for packaged x86_64-linux binaries
47+
# but say they're compatible with ruby 3.1.
48+
# 1.76.0 has a bug that was fixed in 1.77.1, which we can't use yet.
49+
# https://github.com/sass/dart-sass/issues/2239
50+
spec.add_development_dependency 'sass-embedded', '~> 1.75.0' if RUBY_VERSION.start_with?('3.1') # rubocop:disable Gemspec/RubyVersionGlobalsUsage
51+
4552
spec.add_development_dependency 'mocha', '~> 2.0'
4653
spec.add_development_dependency 'ndr_dev_support', '>= 6.0'
4754
spec.add_development_dependency 'net-smtp'

0 commit comments

Comments
 (0)