mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-12 07:54:49 +08:00
Handle Windows drive letter in Mix runtime path in the CLI (#1242)
This commit is contained in:
parent
dbaf1d5ea1
commit
60e44115d0
1 changed files with 9 additions and 0 deletions
|
@ -343,6 +343,15 @@ defmodule Livebook.Config do
|
|||
|
||||
defp parse_mix_config!(config) do
|
||||
case String.split(config, ":", parts: 2) do
|
||||
# Ignore Windows drive letter
|
||||
[<<letter>>, rest] when letter in ?a..?z or letter in ?A..?Z ->
|
||||
[path | rest] = String.split(rest, ":", parts: 2)
|
||||
[<<letter, ":", path::binary>> | rest]
|
||||
|
||||
other ->
|
||||
other
|
||||
end
|
||||
|> case do
|
||||
[path] -> {path, ""}
|
||||
[path, flags] -> {path, flags}
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue