Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion multiversx_sdk_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 13 additions & 1 deletion multiversx_sdk_cli/localnet/step_build_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "multiversx-sdk-cli"
version = "11.0.0"
version = "11.0.1"
authors = [
{ name="MultiversX" },
]
Expand Down
Loading