-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
pub mod harness; | ||
pub mod test_utils; | ||
|
||
use anyhow::bail; | ||
// use anyhow::bail; | ||
pub use harness::*; | ||
use move_package::package_hooks::PackageHooks; | ||
use move_package::source_package::parsed_manifest::CustomDepInfo; | ||
use move_symbol_pool::Symbol; | ||
// use move_package::package_hooks::PackageHooks; | ||
// use move_package::source_package::parsed_manifest::CustomDepInfo; | ||
// use move_symbol_pool::Symbol; | ||
|
||
#[cfg(test)] | ||
mod tests; | ||
|
||
pub(crate) struct InitiaPackageHooks {} | ||
pub const UPGRADE_POLICY_CUSTOM_FIELD: &str = "upgrade_policy"; | ||
// pub(crate) struct InitiaPackageHooks {} | ||
// pub const UPGRADE_POLICY_CUSTOM_FIELD: &str = "upgrade_policy"; | ||
|
||
impl PackageHooks for InitiaPackageHooks { | ||
fn custom_package_info_fields(&self) -> Vec<String> { | ||
vec![UPGRADE_POLICY_CUSTOM_FIELD.to_string()] | ||
} | ||
// impl PackageHooks for InitiaPackageHooks { | ||
// fn custom_package_info_fields(&self) -> Vec<String> { | ||
// vec![UPGRADE_POLICY_CUSTOM_FIELD.to_string()] | ||
// } | ||
|
||
fn custom_dependency_key(&self) -> Option<String> { | ||
Some("initia".to_string()) | ||
} | ||
// fn custom_dependency_key(&self) -> Option<String> { | ||
// Some("initia".to_string()) | ||
// } | ||
|
||
fn resolve_custom_dependency( | ||
&self, | ||
_dep_name: Symbol, | ||
_info: &CustomDepInfo, | ||
) -> anyhow::Result<()> { | ||
bail!("not used") | ||
} | ||
} | ||
// fn resolve_custom_dependency( | ||
// &self, | ||
// _dep_name: Symbol, | ||
// _info: &CustomDepInfo, | ||
// ) -> anyhow::Result<()> { | ||
// bail!("not used") | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.