Allow pre-release versions in attached runtime version check (#2905)

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
Steffen Deusch 2025-01-02 15:20:04 +01:00 committed by GitHub
parent 77f2948337
commit 0438c5fbe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 =