Skip to content

Commit 913686d

Browse files
authored
Merge pull request #753 from lann/file-uris-less-slashy
Remove double slash from file URIs
2 parents 53d8c69 + b94dd2b commit 913686d

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)