Skip to content

Commit 76c312a

Browse files
committed
Default registry URL to https://myflow.sh
Remove the hard error when FLOW_REGISTRY_URL is not set. `f install rise` now works out of the box without any env var configuration.
1 parent 7e76dec commit 76c312a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/registry.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,7 @@ fn resolve_registry_url(
283283
.map(|s| s.to_string())
284284
.or_else(|| cfg.and_then(|cfg| cfg.url.clone()))
285285
.or_else(|| env::var("FLOW_REGISTRY_URL").ok())
286-
.ok_or_else(|| {
287-
anyhow::anyhow!("Registry URL not set. Use --registry or set FLOW_REGISTRY_URL.")
288-
})?;
286+
.unwrap_or_else(|| "https://myflow.sh".to_string());
289287
Ok(url.trim_end_matches('/').to_string())
290288
}
291289

0 commit comments

Comments
 (0)