Przeglądaj źródła

support/download: no longer support BR_CARGO_MANIFEST_PATH in cargo post-process

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
Yann E. MORIN 1 rok temu
rodzic
commit
19c76b190d
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      support/download/cargo-post-process

+ 6 - 1
support/download/cargo-post-process

@@ -5,7 +5,12 @@ set -e
 # shellcheck source=helpers source-path=SCRIPTDIR
 # shellcheck source=helpers source-path=SCRIPTDIR
 . "${0%/*}/helpers"
 . "${0%/*}/helpers"
 
 
-manifest="${BR_CARGO_MANIFEST_PATH-Cargo.toml}"
+if [ "${BR_CARGO_MANIFEST_PATH}" ]; then
+    printf 'Setting BR_CARGO_MANIFEST_PATH is no longer supported; use post-process options.\n' >&2
+    exit 1
+fi
+
+manifest=Cargo.toml
 while getopts "n:o:m:" OPT; do
 while getopts "n:o:m:" OPT; do
     case "${OPT}" in
     case "${OPT}" in
     o)  output="${OPTARG}";;
     o)  output="${OPTARG}";;