From 6c60410c09d73cc97b7c18e5f09a25bb1d163c6c Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Tue, 12 Apr 2016 09:48:19 -0700 Subject: [PATCH] Fix snapshotter deps file output (flutter/engine#2593) - [x] Add the path not the url to the dependencies --- engine/src/flutter/sky/tools/sky_snapshot/loader.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/sky/tools/sky_snapshot/loader.cc b/engine/src/flutter/sky/tools/sky_snapshot/loader.cc index dd0b2a808e..a07b464990 100644 --- a/engine/src/flutter/sky/tools/sky_snapshot/loader.cc +++ b/engine/src/flutter/sky/tools/sky_snapshot/loader.cc @@ -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; }