-
Notifications
You must be signed in to change notification settings - Fork 488
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
CI: Use setup-msys2 options 'location' and 'pacboy' #2763
Conversation
Not sure I understand why "location" is necessary. This seems to be an issue with setup-msys2 and not a user issue? |
It's most likely the workaround for msys2/setup-msys2#167? If so, @umarcor please add a comment to this line in the config file. |
Using the configuration in this PR, everything will be green until Python packages in MSYS2 are rebuilt and use the "new" prefix. Then, we can remove Alternatively, the issue might be silently fixed, if msys2-contrib/cpython-mingw/issues/51 is solved. I'm subscribed to that issue.
Done. |
Doesn't this mean that every user is also broken since |
It is correct that this is a misconfiguration in MSYS2's Python (see msys2-contrib/cpython-mingw#51). However, not every other user is also broken. For instance, the following CI's are using latest setup-msys2 and Python without problems: |
Looks like users are also broken by this, #2740 (comment). The pacboy changes look good, but the location changes are going to need to be fixed upstream, so I think this should be put on hold until we have a fix. We should be testing as users will have their environment configured. |
Since pacboy cannot be used without bumping the Action, I'll convert this to a draft.
Users are unlikely to have their environment configured as in CI. MSYS2's autobuild and the default setup-msys2 do not use You might want to use |
Reliance on the 'prefix' broke usage of cocotb with setup-msys2 v2.5.0. As a workaround, it was pinned to v2.4.2. In release v2.6.0, two options were added to setup-msys2: * location: allows to specify the location of the MSYS2 installation. * pacboy: allows simplifying the syntax for installing MINGW packages. Using option 'location' allows unpinning the Action, so that 'pacboy' can be used.
#2964 removed mingw tests from CI |
Reliance on the 'prefix' broke usage of cocotb with setup-msys2 v2.5.0, because the default installation location was changed.
As a workaround, setup-msys2 was pinned to v2.4.2 in this repo.
In release v2.6.0 of setup-msys2, two options were added:
Having the Action pinned, prevents usage of pacboy. However, using option 'location' allows unpinning the Action, so that 'pacboy' can be used.
This PR uses both 'location' and 'pacboy'.
Refs: