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

Function get_remote_version_availability

utils/install.py:1160–1171  ·  view source on GitHub ↗
(repo, version)

Source from the content-addressed store, hash-verified

1158
1159
1160def get_remote_version_availability(repo, version):
1161 output = run_shell_command(
1162 """git ls-remote --refs --tags "https://github.com/{0}.git" |
1163 cut -d '/' -f 3 |
1164 awk {1} | sort --version-sort | sed 's/_$//'""".format(
1165 repo,
1166 "'{ if ($1 ~ /-/) print; else print $0\"_\" ;}'",
1167 )
1168 )
1169 if version in output:
1170 return True
1171 return False
1172
1173
1174class Compat:

Callers 2

bool_overloadMethod · 0.85

Calls 2

run_shell_commandFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected