Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion e2e/backend/test_backend_missing_deps
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

# Create a PATH that has mise but not package managers
# ROOT is set by run_test script
MISE_DIR="${CARGO_TARGET_DIR:-$ROOT/target}/debug"
# Resolve the mise binary from PATH (release e2e ensures it's installed)
MISE_BIN="$(command -v mise)"
MISE_DIR="$(dirname "$MISE_BIN")"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Mise Installation Path Error

If command -v mise fails to find mise, MISE_BIN becomes empty and MISE_DIR is set to the current directory (.). This incorrectly adds . to the PATH, causing subsequent mise commands to fail and leading to confusing test failures rather than a clear setup error.

Fix in Cursor Fix in Web

export PATH="$MISE_DIR:/usr/bin:/bin:/usr/sbin:/sbin"

# Track overall test status
Expand Down
Loading