Skip to content

Commit

Permalink
fix: vofx search prebuilt version
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed Jul 7, 2024
1 parent 9fc5caf commit be80613
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
26 changes: 0 additions & 26 deletions assets/get_all_prebuilt_otp_version_from_bob.py

This file was deleted.

15 changes: 4 additions & 11 deletions lib/erlang_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
function erlang_utils.get_erlang_release_verions()
local search_url = "https://fastly.jsdelivr.net/gh/version-fox/vfox-erlang@support-download-bin/assets/versions.txt"

local PRE_BUILT_OS_RELEASE = erlang_utils.get_config_from_env("USE_PREBUILT_OTP")
-- local PRE_BUILT_OS_RELEASE = erlang_utils.get_config_from_env("USE_PREBUILT_OTP")

-- if erlang_utils.get_config_from_env("USE_PREBUILT_OTP") then
-- -- FIXME: replace to release branch
Expand All @@ -71,17 +71,10 @@ function erlang_utils.get_erlang_release_verions()
url = search_url
})
local result = {}
local prefix = "OTP-"
for version in string.gmatch(resp.body, '([^\n]+)') do
if version:sub(1, #prefix) == prefix and PRE_BUILT_OS_RELEASE then
table.insert(result, {
version = version
})
else
table.insert(result, {
version = version
})
end
table.insert(result, {
version = version
})
end
return result
end
Expand Down

0 comments on commit be80613

Please sign in to comment.