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

$PATH not icluded #232

Open
Andrey-Shypko opened this issue Jun 2, 2022 · 5 comments
Open

$PATH not icluded #232

Andrey-Shypko opened this issue Jun 2, 2022 · 5 comments
Labels
question Further information is requested

Comments

@Andrey-Shypko
Copy link

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

@hasufell
Copy link

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

@Biswa96
Copy link
Member

Biswa96 commented Dec 17, 2022

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

@hasufell
Copy link

hasufell commented Dec 17, 2022

  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
Copy link

@Biswa96
Copy link
Member

Biswa96 commented Dec 17, 2022

In GitHub Actions, that will be

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

@eine eine added the question Further information is requested label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants