summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-15 20:41:53 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-18 16:57:47 +0200
commit3e44a4eb4a8aed382ca01df598bb65c9cac9d729 (patch)
tree82fe40aa85a1297baa5d4be00c0c3b4ebc8e9e01 /eclass/cargo.eclass
parentcargo.eclass: Support separating crate names/versions via `@` (diff)
downloadgentoo-3e44a4eb4a8aed382ca01df598bb65c9cac9d729.tar.gz
gentoo-3e44a4eb4a8aed382ca01df598bb65c9cac9d729.tar.bz2
gentoo-3e44a4eb4a8aed382ca01df598bb65c9cac9d729.zip
cargo.eclass: Mark GIT_CRATES as pre-inherit
The variable needs to be set before inherit in order for ${CARGO_CRATE_URIS} to be set correctly. Currently all ebuilds using GIT_CRATES except for one define it pre-inherit anyway, and this makes it consistent with CRATES. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/31456 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 8618c90bd986..2ff1f042ba79 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -77,6 +77,7 @@ ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
# @ECLASS_VARIABLE: GIT_CRATES
# @DEFAULT_UNSET
+# @PRE_INHERIT
# @DESCRIPTION:
# Bash associative array containing all of the crates that are to be
# fetched via git. It is used by cargo_crate_uris.