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:
Charlie Marsh
2024-05-31 17:32:36 -04:00
committed by GitHub
parent 7b7da803bb
commit a0652921fc
+1 -1
View File
@@ -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()));
}