MCPcopy Create free account
hub / github.com/apache/fory / _update_go_mod_version

Function _update_go_mod_version

ci/release.py:832–842  ·  view source on GitHub ↗
(lines, v: str)

Source from the content-addressed store, hash-verified

830
831
832def _update_go_mod_version(lines, v: str):
833 go_version = _normalize_go_version(v)
834 for index, line in enumerate(lines):
835 if "github.com/apache/fory/go/fory" not in line:
836 continue
837 lines[index] = re.sub(
838 r"(github.com/apache/fory/go/fory\s+)(v[^\s]+)",
839 r"\g<1>" + go_version,
840 line,
841 )
842 return lines
843
844
845def _update_go_cli_version(lines, v: str):

Callers

nothing calls this directly

Calls 2

_normalize_go_versionFunction · 0.85
subMethod · 0.45

Tested by

no test coverage detected