setup-msys2 icon indicating copy to clipboard operation
setup-msys2 copied to clipboard

$PATH not icluded

Open Andrey-Shypko opened this issue 2 years ago • 5 comments

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

Andrey-Shypko avatar Jun 02 '22 11:06 Andrey-Shypko

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

hasufell avatar Dec 17 '22 05:12 hasufell

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

Biswa96 avatar Dec 17 '22 05:12 Biswa96

  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 avatar Dec 17 '22 05:12 hasufell

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

hasufell avatar Dec 17 '22 06:12 hasufell

In GitHub Actions, that will be

      - uses: msys2/setup-msys2@v2
        with:
          path-type: inherit

Biswa96 avatar Dec 17 '22 06:12 Biswa96