Skip to content

Commit

Permalink
Fix crystal tool dependencies filters for Windows paths (#14928)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Aug 22, 2024
1 parent a3bfa4c commit d031bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/crystal/tools/dependencies.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class Crystal::Command

dependency_printer = DependencyPrinter.create(STDOUT, format: DependencyPrinter::Format.parse(config.output_format), verbose: config.verbose)

dependency_printer.includes.concat config.includes.map { |path| ::Path[path].expand.to_s }
dependency_printer.excludes.concat config.excludes.map { |path| ::Path[path].expand.to_s }
dependency_printer.includes.concat config.includes.map { |path| ::Path[path].expand.to_posix.to_s }
dependency_printer.excludes.concat config.excludes.map { |path| ::Path[path].expand.to_posix.to_s }
config.compiler.dependency_printer = dependency_printer

dependency_printer.start_format
Expand Down

0 comments on commit d031bfa

Please sign in to comment.