We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ec209 commit ac81d3cCopy full SHA for ac81d3c
src/dependency_definition.cr
@@ -52,6 +52,12 @@ module Shards
52
case value
53
when .starts_with?("./"), .starts_with?("../")
54
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 %}
61
when .starts_with?("git@")
62
Parts.new("git", value)
63
else
0 commit comments