msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
292 stars 40 forks source link

$PATH not icluded #232

Closed Andrey-Shypko closed 1 month ago

Andrey-Shypko commented 2 years ago

win10 not included User $PATH. System $PATH OK win7 not included User $PATH and System $PATH

hasufell commented 1 year ago

Same here. All the tools that are available via PATH variable in the stock github windows machines stopped working.

Biswa96 commented 1 year ago

Please explain the issue. How to reproduce it? What errors did you see? etc.

hasufell commented 1 year ago
  test:
    name: test
    runs-on: windows-latest
    defaults:
      run:
        shell: msys2 {0}
    steps:
      - uses: msys2/setup-msys2@v2
      - run: cabal --version

cabal is pre-installed on all windows runners. It doesn't work in msys2 shell.

https://github.com/actions/runner-images/blob/34c4d37ff01c2cb50899a65250530c2321c1226c/images/win/scripts/Installers/Install-Haskell.ps1#L40

hasufell commented 1 year ago

https://github.com/Maximus5/ConEmu/issues/1185#issuecomment-396570420

Biswa96 commented 1 year ago

In GitHub Actions, that will be

      - uses: msys2/setup-msys2@v2
        with:
          path-type: inherit
lazka commented 1 month ago

What Biswa wrote. It's also documented in the README: https://github.com/msys2/setup-msys2?tab=readme-ov-file#path-type