From 13f3dd5ab702441925b67d7c2c18a7089fbac75b Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Tue, 5 Dec 2023 13:15:16 +0100 Subject: [PATCH] providers/vmware: add missing public functions for non-amd64 VmwareProvider must have a corresponding empty function `parse_netplan_config()` in unsupported part as well, just like the amd64 part. Otherwise build would fail when cross-building afterburn for arm64. ``` error[E0599]: no method named `parse_netplan_config` found for reference `&VmwareProvider` in the current scope --> src/providers/vmware/mod.rs:37:14 | 37 | self.parse_netplan_config() | ^^^^^^^^^^^^^^^^^^^^ method not found in `&VmwareProvider` ``` --- docs/release-notes.md | 1 + src/providers/vmware/unsupported.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index e0fedd1b..cc2402eb 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -11,6 +11,7 @@ Major changes: Minor changes: +- providers/vmware: add missing public functions for non-amd64 Packaging changes: diff --git a/src/providers/vmware/unsupported.rs b/src/providers/vmware/unsupported.rs index 99dace52..5b592e32 100644 --- a/src/providers/vmware/unsupported.rs +++ b/src/providers/vmware/unsupported.rs @@ -7,4 +7,8 @@ impl VmwareProvider { pub fn try_new() -> Result { bail!("unsupported architecture"); } + + pub fn parse_netplan_config(&self) -> Result> { + bail!("unsupported architecture"); + } }