mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-26 05:16:29 +08:00
Allow pre-release versions in attached runtime version check (#2905)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
parent
77f2948337
commit
0438c5fbe2
1 changed files with 7 additions and 2 deletions
|
|
@ -91,8 +91,13 @@ defmodule Livebook.Runtime.Attached do
|
|||
# changes are unlikely within the same minor version, so that's
|
||||
# the requirement we enforce.
|
||||
|
||||
current = Version.parse!(System.version())
|
||||
same_minor = "#{current.major}.#{current.minor}.0"
|
||||
current = System.version()
|
||||
|
||||
same_minor =
|
||||
current
|
||||
|> Version.parse!()
|
||||
|> Map.replace!(:patch, 0)
|
||||
|> Version.to_string()
|
||||
|
||||
# Make sure Livebook does not enforce a higher patch version
|
||||
min_version =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue