This repository was archived by the owner on Jan 22, 2025. It is now read-only.
File tree 1 file changed +4
-11
lines changed 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 77
77
78
78
abusers=" $( _ cargo " +${rust_nightly} " metadata --format-version=1 | jq -r " $query " ) "
79
79
if [[ -n " $abusers " ]]; then
80
- # Fold message for heredoc while stripping white-spaces by echo
81
- # shellcheck disable=SC2116
82
- error=" $( echo " ${dev_utils_feature} " must not be used as normal dependencies, \
83
- but is by " ([crate]: [dependency])" ) "
84
80
cat << EOF 1>&2
85
- $error :
81
+ ${dev_utils_feature} must not be used as normal dependencies, but is by \
82
+ "([crate]: [dependency])":
86
83
$abusers
87
84
EOF
88
85
exit 1
126
123
| jq -r " $query "
127
124
)
128
125
if [[ -n " $misconfigured_crates " ]]; then
129
- # Fold message for heredoc while stripping white-spaces by echo
130
- # shellcheck disable=SC2116
131
- error=" $( echo All crates marked \` tainted\' , as well as their \
132
- dependents, MUST declare the \` ${dev_utils_feature} \` . The \
133
- following crates are in violation) "
134
126
cat << EOF 1>&2
135
- $error :
127
+ All crates marked \` tainted\` , as well as their dependents, MUST declare the \
128
+ \` $dev_utils_feature \` . The following crates are in violation:
136
129
$misconfigured_crates
137
130
EOF
138
131
exit 1
You can’t perform that action at this time.
0 commit comments