Skip to content

Commit ac81d3c

Browse files
committed
Fix windows CI (take 2)
1 parent 47ec209 commit ac81d3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dependency_definition.cr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ module Shards
5252
case value
5353
when .starts_with?("./"), .starts_with?("../")
5454
Parts.new("path", Path[value].to_posix.to_s)
55+
when .starts_with?(".\\"), .starts_with?("..\\")
56+
{% if flag?(:windows) %}
57+
Parts.new("path", Path[value].to_posix.to_s)
58+
{% else %}
59+
raise Shards::Error.new("Invalid dependency format: #{value}")
60+
{% end %}
5561
when .starts_with?("git@")
5662
Parts.new("git", value)
5763
else

0 commit comments

Comments
 (0)