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

Compiler unable to find installed packages #261

Open
newhoggy opened this issue Nov 4, 2022 · 3 comments
Open

Compiler unable to find installed packages #261

newhoggy opened this issue Nov 4, 2022 · 3 comments
Labels
question Further information is requested

Comments

@newhoggy
Copy link

newhoggy commented Nov 4, 2022

I'm getting new behaviour where the ghc the compiler we are using are unable to find installed packages where it used to be able to do so.

I have a work around for the problem, but feel that this should work out of the box with the work around.

I have documented my findings here: IntersectMBO/cardano-node#4614

The work around we are using is here: IntersectMBO/cardano-node#4590

I have raised this issue to start a conversation about what recent change might have occurred that would cause this change in behaviour and discuss if there are any options to make the work around unnecessary.

@Biswa96
Copy link
Member

Biswa96 commented Nov 4, 2022

If the program is running in msys2 shell it would not require to add paths manually.

@newhoggy
Copy link
Author

newhoggy commented Nov 5, 2022

Thanks for this tip!

This is curious. I have in my Github Actions workflow the following:

    defaults:
      run:
        shell: ${{ matrix.os == 'windows-latest' && 'msys2 {0}' || 'bash' }}

I didn't write this myself, but this used to work - but maybe it doesn't do what I hope it is meant to do?

The trouble I have is I'd like to write the steps in a way that works across platforms (Linux, MacOS Windows), but if I have to specify shell: msys2, this won't work for non-Windows OSes, which forces me to duplicate all my steps so they work between Windows and POXIS CIs.

Is there a way to toggle the shell globally depending on my CI matrix?

@umarcor
Copy link
Contributor

umarcor commented Nov 25, 2022

@newhoggy you can use a "Params" job to generate outputs, to then be used in the matrix, which you can consume in the defaults.

For instance, in pyTooling/Actions:

@eine eine added the question Further information is requested label Nov 25, 2022
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