From 30396fe34392dfd150bd9bd9814394e01baf0e22 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 29 May 2020 21:35:01 +0100 Subject: [PATCH] nailing-cargo: Provide a dummy build.rs Without this, cargo might do this: package ` (/home/....)` specifies that it links to `` but does not have a custom build script When generating a lockfile it doesn't actually need to look at the build.rs so an empty one will do fine to placate it. Signed-off-by: Ian Jackson --- nailing-cargo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nailing-cargo b/nailing-cargo index d6f0a5b..4cc9eac 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -547,10 +547,10 @@ ENDLK ENDCP $pre .= <<'ENDPRE'; shift; - mkdir -p src; >src/lib.rs; + mkdir -p src; >src/lib.rs; >build.rs ENDPRE $post = <<'ENDPOST'; - rm -r src Cargo.toml; + rm -r src Cargo.toml build.rs; ENDPOST } my $addpath = (cfg_uc qw(oot path_add)) // -- 2.30.2