Make cached artifact location mirror local builds more closely

This commit is contained in:
James Robinson 2015-09-25 11:27:07 -07:00
parent 3638f9380d
commit b7fc56eb31

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);