From 7e68cce8159d55fd597f0da3e00f794200b9928f Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 27 Aug 2024 11:27:10 +0200 Subject: fix(task): support tasks with colons in name in `deno run` (#25233) Fix task names containing a colon not being found with `deno run`. We were only checking for a `module not found` error message, but strings containing a colon throw a different error. Fixes https://github.com/denoland/deno/issues/25232 --- cli/standalone/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/standalone') diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 68e133476..90b2b8a28 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -133,6 +133,7 @@ struct EmbeddedModuleLoader { } pub const MODULE_NOT_FOUND: &str = "Module not found"; +pub const UNSUPPORTED_SCHEME: &str = "Unsupported scheme"; impl ModuleLoader for EmbeddedModuleLoader { fn resolve( -- cgit v1.2.3