• [gentoo-dev] [PATCH 5/5] cargo.eclass: Mark GIT_CRATES as pre-inherit

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Fri Jun 16 14:10:01 2023
    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>
    ---
    eclass/cargo.eclass | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
    index 54a1edd36c28..60981d415c27 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.
    --
    2.41.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)