-
Notifications
You must be signed in to change notification settings - Fork 15
alternative: use msys2 on Windows #232
Conversation
|
How does this work? Is the msys2 executable named |
Yes, exactly! These are shells that are available on Shells (source)
By default, when we request |
marten-seemann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's interesting. This means that we basically set bash = msys2 once, and all future steps will uses msys2 instead of bash.
This also needs that we won't need the changes we made in multiple-go-modules v1.3.
@mvdan, can you have a look at this?
mvdan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly looks easier :) I'd say link to the docs in the YAML, so that if they change those paths in the future, at least we know where to look immediately.
|
Thank you for the reviews! If I understand correctly, merging this will automatically propagate the changes across all repos (https://github.com/protocol/.github#technical-details). So I just wanted to make sure - do we have any additional procedures around merging such changes or should I just merge and check back if there are any unmerged web3-bot PRs a bit later? |
Yes, so please don't merge to |
* chore: add ipfs/go-ds-sql * sorted config.json alphabetically Co-authored-by: Piotr Galar <[email protected]>
GitHub Actions finally fixed the issue, see actions/runner#834 (comment). This reverts #202.
5153691 to
4e2a024
Compare
This is an alternative way of using msys2bash on windows machines during go-test runs.
It prepends
C:/msys64/usr/bintoPATH. After this, whenever we requestshell: bash,msys2's version will be picked ahead ofgit's.With the original PR (#221) the workflow wasn't able to find the paths specified in https://github.com/protocol/multiple-go-modules/blob/master/action.yml#L28:
This alternative setup has been tested in libp2p/go-openssl#19 (NOTE: the red checkmarks are due to 32 bit tests failing which is unrelated to this change). If you inspect the windows tests run please have a look at shell description -
shell: C:/msys64/usr/bin\bash.EXE.I've found this way of accomplishing the task by inspecting installed software on windows runners: https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#msys2