Skip to content

Commit

Permalink
feat(cli): add support for absolute paths
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Oct 29, 2024
1 parent 789f8af commit 59c8e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmtime-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ where
)
.context("failed to initialize Wasmtime engine")?;

let wasm = if workload.starts_with('.') {
let wasm = if workload.starts_with('.') || workload.starts_with('/') {
fs::read(&workload)
.await
.with_context(|| format!("failed to read relative path to workload `{workload}`"))
Expand Down

0 comments on commit 59c8e4b

Please sign in to comment.