Skip to content

Commit 29ed2f5

Browse files
committed
Fix cargo make package (#156)
- Missing exec - Needs to run a different command depending on whether flags are passed. This is different to cargo publish, which ignores trailing whitespace when flags are empty. (cherry picked from commit c2ad7d2)
1 parent 0ab4073 commit 29ed2f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ script = [
193193
"""
194194
cd elasticsearch
195195
echo "packaging elasticsearch crate: cargo package %{CARGO_MAKE_CARGO_PACKAGE_FLAGS}"
196-
cargo package %{CARGO_MAKE_CARGO_PACKAGE_FLAGS}
196+
if is_empty %{CARGO_MAKE_CARGO_PACKAGE_FLAGS}
197+
exec cargo package
198+
else
199+
exec cargo package %{CARGO_MAKE_CARGO_PACKAGE_FLAGS}
200+
end
197201
"""
198202
]
199203

0 commit comments

Comments
 (0)