From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4000B15800F for ; Tue, 7 Feb 2023 23:26:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F2D4E0788; Tue, 7 Feb 2023 23:26:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57ED4E076B for ; Tue, 7 Feb 2023 23:26:05 +0000 (UTC) From: Patrick McLean To: gentoo-dev@lists.gentoo.org Cc: rust@gentoo.org, gyakovlev@gentoo.org Subject: [gentoo-dev] cargo.eclass: Add support for GIT_CRATES Date: Tue, 7 Feb 2023 15:25:56 -0800 Message-Id: <20230207232557.3484952-1-chutzpah@gentoo.org> X-Mailer: git-send-email 2.39.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 59e3b425-17a8-4c84-a2ea-7716e564a9a0 X-Archives-Hash: cca86dac0cf2ef57dba2be0ba2c3781a This adds support for an associative array called GIT_CRATES containing any crates that must be fetched from git rather than just cargo crates. This will add the code to the cargo config to make sure that the locations are overridden so cargo won't try to fetch the crates from git. Currently it automatically handle GitHub and GitLab URIs, and will accept arbitrary URIs.