lib/spoom/cli/bump.rb in spoom-1.1.6 vs lib/spoom/cli/bump.rb in spoom-1.1.7
- old
+ new
@@ -81,12 +81,14 @@
print_changes(files_to_bump, command: cmd, from: from, to: to, dry: dry, path: exec_path)
undo_changes(files_to_bump, from) if dry
exit(files_to_bump.empty?)
end
+ error_url_base = Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE
output, status, exit_code = Sorbet.srb_tc(
"--no-error-sections",
+ "--error-url-base=#{error_url_base}",
path: exec_path,
capture_err: true,
sorbet_bin: options[:sorbet]
)
@@ -102,10 +104,10 @@
print_changes(files_to_bump, command: cmd, from: from, to: to, dry: dry, path: exec_path)
undo_changes(files_to_bump, from) if dry
exit(files_to_bump.empty?)
end
- errors = Sorbet::Errors::Parser.parse_string(output)
+ errors = Sorbet::Errors::Parser.parse_string(output, error_url_base: error_url_base)
files_with_errors = errors.map do |err|
path = File.expand_path(err.file)
next unless path.start_with?(directory)
next unless File.file?(path)