Merge pull request #49 from jamesr/cached_file_location

Make cached artifact location mirror local builds more closely
This commit is contained in:
James Robinson
2015-09-25 12:28:39 -07:00

View File

@@ -52,7 +52,11 @@ class ArtifactStore {
Future<Directory> _engineSpecificCacheDir() async {
Directory cacheDir = await _cacheDir();
Directory engineSpecificDir = new Directory(path.join(cacheDir.path, 'sky_engine', engineRevision));
// For now, all downloaded artifacts are release mode host binaries so use
// a path that mirrors a local release build.
// TODO(jamesr): Add support for more configurations.
String config = 'Release';
Directory engineSpecificDir = new Directory(path.join(cacheDir.path, 'sky_engine', engineRevision, config));
if (!await engineSpecificDir.exists()) {
await engineSpecificDir.create(recursive: true);