From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 8CA1C1FF0DF for ; Fri, 28 Aug 2026 15:32:04 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4D6C821688; Fri, 28 Aug 2026 15:31:13 +0200 (CEST) From: Shannon Sterz To: pve-devel@lists.proxmox.com Subject: [PATCH installer 14/21] bump proxmox-installer-types to 0.2 Date: Fri, 28 Aug 2026 15:30:23 +0200 Message-ID: <20260828133030.351140-15-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260828133030.351140-1-s.sterz@proxmox.com> References: <20260828133030.351140-1-s.sterz@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1787923824886 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.889 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: RQ74QD5SE3SRJTAIM3GFF33KL5DGT3BQ X-Message-ID-Hash: RQ74QD5SE3SRJTAIM3GFF33KL5DGT3BQ X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: and adapt to breaking changes Signed-off-by: Shannon Sterz --- Notes: mainly a stop gap so this can be applied an build, the proper fix would be to implement `AsRef` on the types here, see: https://lore.proxmox.com/pve-devel/20260817125907.878237-1-c.heiss@proxmox.com/ Cargo.toml | 2 +- debian/control | 2 +- proxmox-auto-installer/src/utils.rs | 2 +- proxmox-post-hook/src/main.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c33219c..335fb58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ toml = "0.8" proxmox-auto-installer.path = "./proxmox-auto-installer" proxmox-installer-common.path = "./proxmox-installer-common" proxmox-network-types = "1.1" -proxmox-installer-types = { version = "0.1.1", features = ["legacy"] } +proxmox-installer-types = { version = "0.2", features = ["legacy"] } # Local path overrides # NOTE: You must run `cargo update` after changing this for it to take effect! diff --git a/debian/control b/debian/control index 7565c2a..3512404 100644 --- a/debian/control +++ b/debian/control @@ -19,7 +19,7 @@ Build-Depends: cargo:native, librust-native-tls-dev, librust-pico-args-0.5-dev, librust-pretty-assertions-1.4-dev, - librust-proxmox-installer-types-0.1+legacy-dev (>= 0.1.1-~~), + librust-proxmox-installer-types-0.2+legacy-dev (>= 0.2-~~), librust-proxmox-network-types-1-dev (>= 1.1-~~), librust-proxmox-sys+crypt-dev, librust-regex-1+default-dev (>= 1.7~~), diff --git a/proxmox-auto-installer/src/utils.rs b/proxmox-auto-installer/src/utils.rs index 710af21..db47c60 100644 --- a/proxmox-auto-installer/src/utils.rs +++ b/proxmox-auto-installer/src/utils.rs @@ -40,7 +40,7 @@ fn get_network_settings( .interface_name_pinning() .map(|answer| answer.into()); - let mut network_options = match &answer.global.fqdn { + let mut network_options = match &answer.global.fqdn.clone().into() { // If the user set a static FQDN in the answer file, override it FqdnConfig::Simple(name) => { let mut opts = NetworkOptions::defaults_from( diff --git a/proxmox-post-hook/src/main.rs b/proxmox-post-hook/src/main.rs index ec9ab74..5f760b7 100644 --- a/proxmox-post-hook/src/main.rs +++ b/proxmox-post-hook/src/main.rs @@ -98,7 +98,7 @@ mod detail { .and_then(|r| Ok(String::from_utf8(r.stdout)?)) }; - let fqdn = match &answer.global.fqdn { + let fqdn = match &answer.global.fqdn.clone().into() { FqdnConfig::Simple(name) => name.to_string(), FqdnConfig::FromDhcp(FqdnFromDhcpConfig { source: FqdnSourceMode::FromDhcp, -- 2.47.3