diff --git a/xtask/src/export_schema.rs b/xtask/src/export_schema.rs index 7e6f0ea..0c100a8 100644 --- a/xtask/src/export_schema.rs +++ b/xtask/src/export_schema.rs @@ -10,6 +10,7 @@ pub fn run(args: Args) -> eyre::Result<()> { let mut output = OpenOptions::new() .write(true) .create(true) + .truncate(true) .create_new(!args.force) .open(&args.output) .wrap_err("failed to open output")?;