Article View: linux.debian.bugs.dist
Article #1021Bug#1148581: cargo install wrapper fails for virtual manifest files
From: Fabian Grünbichler
Date: Fri, 16 Oct 2026 07:20
Date: Fri, 16 Oct 2026 07:20
33 lines
3398 bytes
3398 bytes
On Mon, 21 Sep 2026 17:21:32 +1000 Reuben Roessler <reuben.roessler@canonical.com> wrote: > Package: cargo > Version: 1.93.1ubuntu1 > Severity: normal > Tags: patch > X-Debbugs-Cc: reuben.roessler@canonical.com > > Dear Maintainer, > > The wrapper for cargo install forces the --path option for "cargo > install" to the current working directory. This fails for projects > which use a virtual manifest file (eg: declares a [workspace] instead > of a [package]). > > I am submitting a patch that will allow developers to override the > installation path option so that they can install a selected crate. It seems Ubuntu is carrying more delta for the cargo wrapper which makes this patch unappliable. Could you either send a cleaned up version matching Debian's copy of the script, or upstream the other changes first if they would benefit us on the Debian side? I am not sure whether overriding the install path has any benefits over just calling `cargo build -p <foo>`, but it should be possible to support it. We could also make the injection of `--path ..` by the wrapper conditional on no path being passed already, which would support calling the wrapper with a path override? We already have similar logic for dropping `--quiet` if the arguments include `--verbose`. I am happy to take MRs on salsa as well, if you prefer that. Fabian
Technical Details
Message-ID:
<NOKop-5S2C-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NFGDn-TO1-9@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Fabian Grünbichler <f.gruenbichler@proxmox.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1148581: cargo install wrapper fails for virtual manifest files Date: Fri, 16 Oct 2026 09:20:01 +0200 Message-ID: <NOKop-5S2C-5@gated-at.bofh.it> References: <NFGDn-TO1-9@gated-at.bofh.it> X-Original-To: 1148581@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Oct 16 07:19:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Fabian Grünbichler <f.gruenbichler@proxmox.com>, 1148581@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-rust-maintainers@alioth-lists.debian.net X-Debian-Pr-Message: followup 1148581 X-Debian-Pr-Package: cargo X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: cargo, rustc MIME-Version: 1.0 User-Agent: astroid/0.17.0 (https://github.com/astroidmail/astroid) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1792135076578 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997025 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 33 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Reuben Roessler <reuben.roessler@canonical.com> X-Original-Date: Fri, 16 Oct 2026 09:17:53 +0200 X-Original-Message-ID: <1792134570.b0bvszkxck.astroid@yuna.none> X-Original-References: <178997529264.383003.9909676428275739391.reportbug@snowmass>