mirror of
https://github.com/openai/codex.git
synced 2026-05-06 06:12:59 +03:00
Handle nonexistent absolute local marketplace paths
This commit is contained in:
@@ -148,6 +148,10 @@ fn resolve_local_source_path(source: &str) -> Result<PathBuf, MarketplaceAddErro
|
||||
.join(path)
|
||||
};
|
||||
|
||||
if !path.exists() && path.is_absolute() {
|
||||
return Ok(path);
|
||||
}
|
||||
|
||||
path.canonicalize().map_err(|err| {
|
||||
MarketplaceAddError::InvalidRequest(format!(
|
||||
"failed to resolve local marketplace source {}: {err}",
|
||||
|
||||
Reference in New Issue
Block a user