summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-07-25 18:34:45 +0100
committerMichał Górny <mgorny@gentoo.org>2024-08-06 10:30:09 +0200
commitd57601effef63b266afe7df5c8cb7dae52fa44ac (patch)
treeeccc9643b3836448e70dd70ee9ef5b4bce2a1cd9 /eclass
parentpython-utils-r1.eclass: Add a sanity check for PYTHONPATH (diff)
downloadgentoo-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.eclass4
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}"