Build all artifacts from packlist

Summary:
Instead of hardcoding the targets, it will now build all specified
types in the "packlist".

Reviewed By: jknoxville

Differential Revision: D21349762

fbshipit-source-id: 58f4a3bbf0b6ff4dd87eb44bbd7b200127da8017
This commit is contained in:
Pascal Hartig
2020-05-01 09:41:13 -07:00
committed by Facebook GitHub Bot
parent 2c20f016d4
commit 8818fbe375
3 changed files with 34 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ use std::path::PathBuf;
#[derive(Debug)]
pub enum Error {
MissingPackFile(Platform, PackType, PathBuf),
MissingPackDefinition(Platform, PackType),
MissingPlatformDefinition(Platform),
}
impl std::error::Error for Error {}
@@ -27,10 +27,10 @@ impl fmt::Display for Error {
pack_type,
path.to_string_lossy()
),
Error::MissingPackDefinition(platform, pack_type) => write!(
Error::MissingPlatformDefinition(platform) => write!(
f,
"Missing packlist definition for platform {:?} and pack type {:?}.",
platform, pack_type,
"Platform {} is not defined in the given packlist.",
platform
),
}
}