From 30eb9a31ec7e4cf0ef683c86edb28ffc6fa3d54e Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 00:52:20 +0000 Subject: enstate: --pack warns of an entry from text with placeholders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Text loses its trailing line breaks, which a key or a certificate rarely should; a whole-value source (cmd:…, file:…, or a table) takes an entry byte-exact. The warning says so, and the entry goes in as asked. --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 8d3830b..5ae94e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -229,7 +229,9 @@ fn run() -> Result { if command == "pack" { let out = out.context("--pack needs --out DIR")?; let schema = settings.schema.as_deref().map(Schema::load).transpose()?; - enstate::pack::pack(path.as_deref().unwrap(), &out, schema.as_ref())?; + for warning in enstate::pack::pack(path.as_deref().unwrap(), &out, schema.as_ref())? { + eprintln!("enstate: warning: {warning}"); + } return Ok(ExitCode::SUCCESS); } let store = Store::new( -- cgit v1.3.1