@@ 474,6 474,13 @@ local get_gomod_repo_and_version = function()
-- Matches
-- github.com/kardianos/service => github.com/netbirdio/service v0.0.0-20230215170314-b923b89432b0
+ match, _, repo, version = string.find(line, '^ [^ ]+ => ([^ ]+) ([^ ]+)')
+ if match then
+ return repo, version
+ end
+
+ -- Matches
+ -- github.com/kardianos/service v1.1.1 => github.com/netbirdio/service v0.0.0-20230215170314-b923b89432b0
match, _, repo, version = string.find(line, '^ [^ ]+ [^ ]+ => ([^ ]+) ([^ ]+)')
if match then
return repo, version