提交 c3504b51 编写于 作者: J John McCutchan

Fix snapshotter deps file output (#2593)

- [x] Add the path not the url to the dependencies
上级 9cb0aa1a
......@@ -161,13 +161,14 @@ std::string Loader::GetFilePathForFileURL(std::string url) {
}
std::string Loader::Fetch(const std::string& url) {
base::FilePath path(GetFilePathForURL(url));
std::string url_path = GetFilePathForURL(url);
base::FilePath path(url_path);
std::string source;
if (!base::ReadFileToString(path, &source)) {
fprintf(stderr, "error: Unable to find Dart library '%s'.\n", url.c_str());
exit(1);
}
dependencies_.insert(url);
dependencies_.insert(url_path);
return source;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册