From 4fe43eb9853bb95dbfe276957bd7d3f931a451b3 Mon Sep 17 00:00:00 2001 From: Jeff Weiss Date: Tue, 18 Jun 2024 00:58:22 -0700 Subject: [PATCH] fix Erlang version parsing (#192) --- lib/bob/job/docker_checker.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/bob/job/docker_checker.ex b/lib/bob/job/docker_checker.ex index 2b74ca5..74ff5c1 100644 --- a/lib/bob/job/docker_checker.ex +++ b/lib/bob/job/docker_checker.ex @@ -238,7 +238,12 @@ defmodule Bob.Job.DockerChecker do defp to_matchable(string) do destructure [version, pre], String.split(string, "-", parts: 2) - components = String.split(version, ".") + + components = + version + |> String.split(".") + |> Enum.map(&String.to_integer/1) + {components, pre || []} end