mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 01:33:52 +00:00
chore: prepare v0.2.1 release
This commit is contained in:
parent
1f5c4b2798
commit
c94c826307
32 changed files with 2483 additions and 382 deletions
|
|
@ -350,6 +350,7 @@ prepare_paths() {
|
|||
|
||||
build_binary() {
|
||||
local build_log
|
||||
local stale_input
|
||||
|
||||
if [[ -z "$BIN_PATH" ]]; then
|
||||
BIN_PATH="$ROOT_DIR/target/debug/idx"
|
||||
|
|
@ -371,6 +372,27 @@ build_binary() {
|
|||
fi
|
||||
fi
|
||||
|
||||
if (( BUILD == 0 )) && [[ "$BIN_PATH" == "$ROOT_DIR/target/debug/idx" && -x "$BIN_PATH" ]]; then
|
||||
stale_input="$(
|
||||
find \
|
||||
"$ROOT_DIR/src" \
|
||||
"$ROOT_DIR/tests" \
|
||||
"$ROOT_DIR/Cargo.toml" \
|
||||
"$ROOT_DIR/Cargo.lock" \
|
||||
"$ROOT_DIR/scripts/live-smoke.sh" \
|
||||
-type f \
|
||||
-newer "$BIN_PATH" \
|
||||
-print \
|
||||
-quit \
|
||||
2>/dev/null
|
||||
)"
|
||||
if [[ -n "$stale_input" ]]; then
|
||||
echo "refusing to run smoke checks against stale $BIN_PATH; newer input detected at $stale_input" >&2
|
||||
echo "rebuild first or omit --no-build so the runner refreshes target/debug/idx" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if (( BUILD )); then
|
||||
build_log="$LOG_DIR/build.log"
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue