Removes the digest artifact for one host channel and forgets the recorded export target so refreshes stop re-creating it.
(
profile_root: &Path,
target: SkillInstallTarget,
output: &Path,
)
| 722 | /// Removes the digest artifact for one host channel and forgets the recorded |
| 723 | /// export target so refreshes stop re-creating it. |
| 724 | pub fn remove_memory_digest_export( |
| 725 | profile_root: &Path, |
| 726 | target: SkillInstallTarget, |
| 727 | output: &Path, |
| 728 | ) -> Result<()> { |
| 729 | if target == SkillInstallTarget::Hermes { |
| 730 | return Ok(()); |
| 731 | } |
| 732 | if target.is_native_overlay() { |
| 733 | remove_native_digest(target, output)?; |
| 734 | } else { |
| 735 | remove_memory_digest_prompt_block(output)?; |
| 736 | } |
| 737 | unrecord_digest_target(profile_root, target, output) |
| 738 | } |
| 739 | |
| 740 | /// Install-path entry point: exports when the config gate is enabled, |
| 741 | /// otherwise removes any previously exported digest for this channel. |