Skip to content

Commit

Permalink
Steep doesn't like --enable-frozen-string-literal
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhull committed Jun 17, 2024
1 parent 202b355 commit 28b32c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ end

desc "Run type checks (RBS + Steep)"
task :steep do
puts ENV['RUBYOPT']
ENV['RUBYOPT'] = ENV['RUBYOPT'].sub('--enable-frozen-string-literal', '')
puts ENV['RUBYOPT']
bindir = Dir[File.join(ENV['HOME'], '.local/share/gem/ruby/*/bin')].last
sh "#{File.join(bindir, 'steep')} check"
end
Expand Down

0 comments on commit 28b32c0

Please sign in to comment.