Skip to content

Fixture test script not working on Windows (MINGW64) #705

@bukowa

Description

@bukowa

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

test-fixtures-locally.sh is not working on Windows when executed in bash provided by git installation (C:\Program Files\Git\bin\bash.exe

$ .github/fixtures/test-fixtures-locally.sh test-date-order
error: manifest path `/c/Users/buk/WebstormProjects/git-cliff/.github/fixtures/../../Cargo.toml` does not exist

Solution that works for me:

SCRIPT_DIR=$(cygpath -w "$SCRIPT_DIR")
FIXTURES_DIR=$(cygpath -w "$FIXTURES_DIR")

Steps To Reproduce

$ .github/fixtures/test-fixtures-locally.sh test-date-order
error: manifest path `/c/Users/buk/WebstormProjects/git-cliff/.github/fixtures/../../Cargo.toml` does not exist

Expected behavior

It works.

Screenshots / Logs

No response

Software information

  • Operating system: Windows
  • Rust version:
  • Project version:

Additional context

Originally posted by @orhun in #696 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions