diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-07-25 18:34:45 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-08-06 10:30:09 +0200 |
commit | d57601effef63b266afe7df5c8cb7dae52fa44ac (patch) | |
tree | eccc9643b3836448e70dd70ee9ef5b4bce2a1cd9 /eclass | |
parent | python-utils-r1.eclass: Add a sanity check for PYTHONPATH (diff) | |
download | gentoo-d57601effef63b266afe7df5c8cb7dae52fa44ac.tar.gz gentoo-d57601effef63b266afe7df5c8cb7dae52fa44ac.tar.bz2 gentoo-d57601effef63b266afe7df5c8cb7dae52fa44ac.zip |
cargo.eclass: Use newer Cargo config file name
"config" is deprecated and "config.toml" has been valid for ages.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cargo.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 7db34efb4e17..aab28dbbac16 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -248,7 +248,7 @@ cargo_crate_uris() { # @FUNCTION: cargo_gen_config # @DESCRIPTION: -# Generate the $CARGO_HOME/config necessary to use our local registry and settings. +# Generate the $CARGO_HOME/config.toml necessary to use our local registry and settings. # Cargo can also be configured through environment variables in addition to the TOML syntax below. # For each configuration key below of the form foo.bar the environment variable CARGO_FOO_BAR # can also be used to define the value. @@ -261,7 +261,7 @@ cargo_gen_config() { mkdir -p "${ECARGO_HOME}" || die - cat > "${ECARGO_HOME}/config" <<- _EOF_ || die "Failed to create cargo config" + cat > "${ECARGO_HOME}/config.toml" <<- _EOF_ || die "Failed to create cargo config" [source.gentoo] directory = "${ECARGO_VENDOR}" |