Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 23d97ad

Browse files
authored
Fix fuzzy function name matching for invocations (#191)
* Fix fuzzy function name matching for invocations * Updated to v1.2.2-dev.6
1 parent de32173 commit 23d97ad

File tree

10 files changed

+953
-132
lines changed

10 files changed

+953
-132
lines changed

Cargo.lock

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ exclude = [
1414
[workspace.dependencies]
1515

1616
# Golem dep
17-
golem-client = "=1.2.2-dev.4"
18-
golem-common = "=1.2.2-dev.4"
19-
golem-rib = "=1.2.2-dev.4"
20-
golem-service-base = "=1.2.2-dev.4"
21-
golem-wasm-ast = { version = "=1.2.2-dev.4", default-features = false, features = ["analysis", "wave"] }
22-
golem-wasm-rpc = { version = "=1.2.2-dev.4", default-features = false, features = ["host"] }
17+
golem-client = "=1.2.2-dev.6"
18+
golem-common = "=1.2.2-dev.6"
19+
golem-rib = "=1.2.2-dev.6"
20+
golem-service-base = "=1.2.2-dev.6"
21+
golem-wasm-ast = { version = "=1.2.2-dev.6", default-features = false, features = ["analysis", "wave"] }
22+
golem-wasm-rpc = { version = "=1.2.2-dev.6", default-features = false, features = ["host"] }
2323
golem-wit = "=1.2.0"
2424

2525
# Golem cloud deps
26-
golem-cloud-client = "=1.2.2-dev.4"
26+
golem-cloud-client = "=1.2.2-dev.6"
2727

2828
# External deps
2929
anyhow = "1.0.97"
@@ -116,12 +116,12 @@ wit-encoder = "=0.227.1"
116116
wit-parser = "=0.227.1"
117117

118118
[patch.crates-io]
119-
golem-client = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.4" }
120-
golem-common = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.4" }
121-
golem-rib = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.4" }
122-
golem-service-base = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.4" }
123-
golem-wasm-ast = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.4" }
124-
golem-wasm-rpc = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.4" }
119+
golem-client = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.6" }
120+
golem-common = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.6" }
121+
golem-rib = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.6" }
122+
golem-service-base = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.6" }
123+
golem-wasm-ast = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.6" }
124+
golem-wasm-rpc = { git = "https://github.com/golemcloud/golem.git", tag = "v1.2.2-dev.6" }
125125

126126
redis-protocol = { git = "https://github.com/golemcloud/redis-protocol.rs.git", branch = "unpin-cookie-factory" }
127127
wasmtime = { git = "https://github.com/golemcloud/wasmtime.git", branch = "golem-wasmtime-v27.0.0" }

golem-cli/src/command_handler/app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ impl AppCommandHandler {
468468
Error::Ambiguous {
469469
pattern,
470470
highlighted_options,
471+
..
471472
} => {
472473
format!(
473474
" - {}, did you mean one of {}?",

golem-cli/src/command_handler/partial_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl ErrorHandler {
188188
{
189189
log_text_view(&AvailableFunctionNamesHelp {
190190
component_name: worker_name_match.component_name.0,
191-
function_names: show_exported_functions(&component.metadata.exports),
191+
function_names: show_exported_functions(&component.metadata.exports, true),
192192
});
193193
logln("");
194194
}

0 commit comments

Comments
 (0)