From 3b7368a410919821a0220f2116db5e0cb6b16aed Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Fri, 18 Jul 2025 13:38:21 +0300 Subject: [PATCH 1/2] update go version --- multiversx_sdk_cli/config.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multiversx_sdk_cli/config.py b/multiversx_sdk_cli/config.py index 9b6c89b5..d8bdd00c 100644 --- a/multiversx_sdk_cli/config.py +++ b/multiversx_sdk_cli/config.py @@ -128,7 +128,7 @@ def _guard_valid_config_deletion(name: str): def get_defaults() -> dict[str, Any]: return { "dependencies.golang.resolution": "SDK", - "dependencies.golang.tag": "go1.20.7", + "dependencies.golang.tag": "go1.23.10", "dependencies.golang.urlTemplate.linux": "https://golang.org/dl/{TAG}.linux-amd64.tar.gz", "dependencies.golang.urlTemplate.osx": "https://golang.org/dl/{TAG}.darwin-amd64.tar.gz", "dependencies.golang.urlTemplate.windows": "https://golang.org/dl/{TAG}.windows-amd64.zip", diff --git a/pyproject.toml b/pyproject.toml index 69697e62..11f58d7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "multiversx-sdk-cli" -version = "11.0.0" +version = "11.0.1" authors = [ { name="MultiversX" }, ] From 1131c5a9ef71a7ad017bd3c632c33c987574213d Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Fri, 18 Jul 2025 14:14:00 +0300 Subject: [PATCH 2/2] fix to copy legacy vm files --- multiversx_sdk_cli/localnet/step_build_software.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/multiversx_sdk_cli/localnet/step_build_software.py b/multiversx_sdk_cli/localnet/step_build_software.py index 7f9b38ca..ac684ed0 100644 --- a/multiversx_sdk_cli/localnet/step_build_software.py +++ b/multiversx_sdk_cli/localnet/step_build_software.py @@ -49,8 +49,12 @@ def _do_build(cwd: Path, env: Dict[str, str]): def _copy_wasmer_libs(config: ConfigRoot, destination: Path): golang = dependencies.get_golang() vm_go_folder_name = _get_chain_vm_go_folder_name(config) + vm_go_legacy_folder_name = _get_chain_vm_go_legacy_folder_name(config) + vm_go_path = golang.get_gopath() / "pkg" / "mod" / vm_go_folder_name - wasmer_path = vm_go_path / "wasmer" + vm_go_legacy_path = golang.get_gopath() / "pkg" / "mod" / vm_go_legacy_folder_name + + wasmer_path = vm_go_legacy_path / "wasmer" wasmer2_path = vm_go_path / "wasmer2" libraries.copy_libraries(wasmer_path, destination) @@ -65,6 +69,14 @@ def _get_chain_vm_go_folder_name(config: ConfigRoot) -> str: return f"{parts[0]}@{parts[1]}" +def _get_chain_vm_go_legacy_folder_name(config: ConfigRoot) -> str: + go_mod = config.software.mx_chain_go.get_path_within_source(Path("go.mod")) + lines = utils.read_lines(go_mod) + line = [line for line in lines if "github.com/multiversx/mx-chain-vm-v1_4-go" in line][0] + parts = line.split() + return f"{parts[0]}@{parts[1]}" + + def _set_rpath(cmd_path: Path): """ Set the rpath of the executable to the current directory, on a best-effort basis.