Skip to content

Commit ded2309

Browse files
msbitwhesse
authored andcommitted
Fix Homebrew undent warning
Update the generated `dart.rb` formula file to fix: ``` Warning: Calling <<-EOS.undent is deprecated! Use <<~EOS instead. /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/dart.rb:72:in `caveats' Please report this to the dart-lang/dart tap! ``` being reported by `brew`. Fixes dart-lang/homebrew-dart#48 Credit for original patch to @fsouza: https://github.com/fsouza/homebrew-dart/commit/06b76e0935a0c74e8f10d32b81e1b72358a661b4 Closes #32346 #32346 GitOrigin-RevId: 938a696 Change-Id: I757647a7ef0a373cb0258f0fcf03f89849aeba5e Reviewed-on: https://dart-review.googlesource.com/44100 Reviewed-by: Kevin Moore <[email protected]> Reviewed-by: William Hesse <[email protected]>
1 parent 1e814d9 commit ded2309

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/apps/update_homebrew/lib/update_homebrew.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ class Dart < Formula
170170
end
171171
172172
def shim_script(target)
173-
<<-EOS.undent
173+
<<~EOS
174174
#!/usr/bin/env bash
175175
exec "#{prefix}/#{target}" "\$@"
176176
EOS
177177
end
178178
179-
def caveats; <<-EOS.undent
179+
def caveats; <<~EOS
180180
Please note the path to the Dart SDK:
181181
#{opt_libexec}
182182
@@ -187,7 +187,7 @@ class Dart < Formula
187187
end
188188
189189
test do
190-
(testpath/"sample.dart").write <<-EOS.undent
190+
(testpath/"sample.dart").write <<~EOS
191191
void main() {
192192
print(r"test message");
193193
}

0 commit comments

Comments
 (0)