From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: Cargo build system: Lock file cannot be updated Date: Sat, 24 Dec 2016 14:51:22 +0100 Message-ID: References: <104949EB-C468-4F56-B27B-F7C533CE5129@kydara.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKmjQ-0006iO-7N for help-guix@gnu.org; Sat, 24 Dec 2016 08:51:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKmjL-0004lu-QX for help-guix@gnu.org; Sat, 24 Dec 2016 08:51:28 -0500 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:34993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cKmjL-0004lY-Lc for help-guix@gnu.org; Sat, 24 Dec 2016 08:51:23 -0500 Received: by mail-qk0-x234.google.com with SMTP id u25so155604232qki.2 for ; Sat, 24 Dec 2016 05:51:23 -0800 (PST) In-Reply-To: <104949EB-C468-4F56-B27B-F7C533CE5129@kydara.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?UTF-8?B?RnJhbmNpc2NvIEfDs21leiBHYXJjw61h?= Cc: help-guix@gnu.org > I can assume it=E2=80=99s attempting to modify the current crate's Cargo.= lock, > but obviously is unable to do so. Is this some sort of bug on the build > system, or is there any parameter which the script is missing? Ansi term is a rust library. Because of that it does not have a Cargo.lock file. This means that cargo needs to perform it's dependency resolution algorithm to determine which dependencies are needed and which versions. This doesn't work because cargo requires network connectivity to download the crates.io registry. To prevent this we pass the --frozen flag to cargo build. This is a bit annoying in this particular case because there are no dependencies. What you are experiencing is a known deficiency in the cargo-build-system [0], the relevant excerpt copied below for reference. * Cargo build system should not do anything if there isn't a Cargo.lock file except copy the source to out. Contributions are welcome! [0] http://lists.gnu.org/archive/html/guix-devel/2016-12/msg00454.html