mirror of
https://github.com/darlinghq/xcbuild.git
synced 2024-11-27 05:50:27 +00:00
ignore non-directory path in dependency-info-tool
This commit is contained in:
parent
44c0681afb
commit
0e7eaa08f9
@ -162,6 +162,11 @@ LoadDependencyInfo(Filesystem const *filesystem, std::string const &path, depend
|
||||
dependencyInfo->push_back(binaryInfo->dependencyInfo());
|
||||
return true;
|
||||
} else if (format == dependency::DependencyInfoFormat::Directory) {
|
||||
if (filesystem->type(path) != Filesystem::Type::Directory) {
|
||||
fprintf(stderr, "warning: ignoring non-directory %s\n", path.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
auto directoryInfo = dependency::DirectoryDependencyInfo::Deserialize(filesystem, path);
|
||||
if (!directoryInfo) {
|
||||
fprintf(stderr, "error: invalid directory\n");
|
||||
|
Loading…
Reference in New Issue
Block a user