Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fixture): support running fixtures on mingw64 #708

Merged
merged 1 commit into from
Jun 15, 2024
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
13 changes: 13 additions & 0 deletions .github/fixtures/test-fixtures-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ git init
# Commit
"$FIXTURES_DIR/commit.sh"

# Check if we are running on Windows with MINGW64 and if cygpath is available
if [ -n "$MSYSTEM" ] && [ "$MSYSTEM" = "MINGW64" ]; then
echo "Running inside MINGW64 trying to convert paths to Windows format."
if command -v cygpath > /dev/null 2>&1; then
# Convert the path to Windows format
SCRIPT_DIR=$(cygpath -w "$SCRIPT_DIR")
FIXTURES_DIR=$(cygpath -w "$FIXTURES_DIR")
else
echo "WARNING: cygpath command not found in the PATH. The script may not work correctly on Windows."
exit 1
fi
fi

# Show results
echo -e "\n---Run git-cliff---"
cargo run --manifest-path "$SCRIPT_DIR/../../Cargo.toml" -- -vv --config "$FIXTURES_DIR/cliff.toml" "${@:2}"
Loading