Clean up `rake steep`
change msuoxnwxwltnzlyxnultloyurvzqmrsn
commit b4b167e2ec992b9b9eafa2d897da3e2044c1b00a
author Alpha Chen <alpha@kejadlen.dev>
date
parent wtqnwnlr
diff --git a/Rakefile b/Rakefile
index af045d4..6574d3a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -27,11 +27,12 @@ end
 
 desc "Type check lib against the RBS comments in it"
 task :steep do
-  # RBS reads source with the default external encoding, so under a C
-  # locale every em dash in a comment is an invalid byte rather than a
-  # character and the check dies parsing them. The same footgun the
-  # ASCII-only rule in config.ru exists for.
-  sh({"RUBYOPT" => "#{ENV.fetch('RUBYOPT', '')} -EUTF-8"}, "steep", "check")
+  # RBS reads source with the default external encoding, so this needs a
+  # UTF-8 locale: under a C one every em dash in a comment is an invalid
+  # byte rather than a character and the check dies parsing them. LANG is
+  # set in .ramekin/config.kdl for agents and by the login environment
+  # otherwise. The same footgun the ASCII-only rule in config.ru exists for.
+  sh "steep", "check"
 end
 
 desc "Render the macOS configuration profile (carddav.mobileconfig)"
@@ -74,4 +75,4 @@ namespace :profile do
   end
 end
 
-task default: :test
+task default: %i[ steep test ]