Don't enforce that requirements files are "files" (#3947)
## Summary This was just an opportunistic guard but it broke some use-cases. Closes #3944.
This commit is contained in:
@@ -107,7 +107,7 @@ impl RequirementsSpecification {
|
||||
if !(path == Path::new("-")
|
||||
|| path.starts_with("http://")
|
||||
|| path.starts_with("https://")
|
||||
|| path.is_file())
|
||||
|| path.exists())
|
||||
{
|
||||
return Err(anyhow::anyhow!("File not found: `{}`", path.user_display()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user