Skip to content

Commit b94dd2b

Browse files
committed
Remove double slash from file URIs
While valid for absolute URIs, the double slashes cannot work with relative URIs and are usually redundant. Signed-off-by: Lann Martin <lann.martin@fermyon.com>
1 parent 53d8c69 commit b94dd2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/trigger/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ where
141141
.context("SPIN_ALLOW_TRANSIENT_WRITE")?;
142142

143143
// TODO(lann): Find a better home for this; spin_loader?
144-
let mut app = if let Some(manifest_file) = manifest_url.strip_prefix("file://") {
144+
let mut app = if let Some(manifest_file) = manifest_url.strip_prefix("file:") {
145145
let bindle_connection = std::env::var("BINDLE_URL")
146146
.ok()
147147
.map(|url| BindleConnectionInfo::new(url, false, None, None));

src/commands/up.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl UpCommand {
148148

149149
let manifest_url = match app.info.origin {
150150
spin_manifest::ApplicationOrigin::File(path) => {
151-
format!("file://{}", path.canonicalize()?.to_string_lossy())
151+
format!("file:{}", path.canonicalize()?.to_string_lossy())
152152
}
153153
spin_manifest::ApplicationOrigin::Bindle { id, server } => {
154154
format!("bindle+{}?id={}", server, id)

0 commit comments

Comments
 (0)