Skip to content

Commit c2ad7d2

Browse files
authored
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.
1 parent 7ab8505 commit c2ad7d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.toml

+5-1
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)