MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / get_latest_github_release

Function get_latest_github_release

utils/install.py:1147–1157  ·  view source on GitHub ↗
(repo)

Source from the content-addressed store, hash-verified

1145
1146
1147def get_latest_github_release(repo):
1148 return run_shell_command(
1149 """git ls-remote --refs --tags "https://github.com/{0}.git" |
1150 cut -d '/' -f 3 |
1151 awk {1} | sort --version-sort | sed 's/_$//' |
1152 grep -e '^[0-9]\+.[0-9]\+.[0-9]\+$' |
1153 tail -1""".format(
1154 repo,
1155 "'{ if ($1 ~ /-/) print; else print $0\"_\" ;}'",
1156 )
1157 )
1158
1159
1160def get_remote_version_availability(repo, version):

Callers 1

install.pyFile · 0.85

Calls 2

run_shell_commandFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected