Do not convert the package map to an absolute path (flutter/engine#2712)

Package map entries can contain relative paths, and these paths will be based
on the package map path as originally specified
This commit is contained in:
Jason Simmons
2016-05-25 16:34:12 -07:00
parent ae3cf88f92
commit 49fb48e322

View File

@@ -88,7 +88,7 @@ Loader::Loader() {
}
void Loader::LoadPackagesMap(const base::FilePath& packages) {
packages_ = base::MakeAbsoluteFilePath(packages);
packages_ = packages;
dependencies_.insert(packages_.AsUTF8Unsafe());
std::string packages_source;
if (!base::ReadFileToString(packages_, &packages_source)) {