(lines, v: str)
| 830 | |
| 831 | |
| 832 | def _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 | |
| 845 | def _update_go_cli_version(lines, v: str): |
nothing calls this directly
no test coverage detected