question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

msys2 shell error handling issues

See original GitHub issue

See the following workflow: https://github.com/lazka/msys2-workflow-error-test/actions/runs/167621530/workflow

The ubuntu bash runs by default with set -e (It’s documented as set -e o pipefail here https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference but it doesn’t look like that’s true)

The msys2 shell doesn’t which means a failing command doesn’t fail the step, which is imo bad, at least for a default behavior in CI. It should at least default to -e

Any ideas?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lazkacommented, Jul 14, 2020

yes!

1reaction
lazkacommented, Jul 13, 2020

This was already reported here actions/runner#353

I think that’s a similar but unrelated issue. It is about getting a different behaviour when not setting shell or when setting it to bash. In our case, we don’t use any of them, neither the default nor bash. Our entrypoint is msys2.cmd.

Yeah, unrelated, I just wanted to suggest at first that we should mirror what bash does in GHA ideally, but turned out that it wasn’t that clear…

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - MSYS2
FAQ. How can I get MSYS2 running under Wine? Wine fails to run Cygwin binaries and as a result MSYS2 and Git for...
Read more >
Handling Bash script with CRLF (carriage return) in Linux as ...
The sample interpreter has two problems: 1. since it passes the script via a non-seekable file (a pipe), bash will read it byte...
Read more >
Handling of MSYS2 shells (#1699) · Issues - gitlab-runner
An error occurred while fetching the assigned iteration of the selected issue.
Read more >
Issues compiling GTK software in MSYS2/MinGW with ...
In the case of a MinGW shell, I can install everything fine, but I cannot compile the C code because I get the...
Read more >
msys2 - On Web Security
First, start a MSYS2 shell and install the required dependencies (build tools, ... other vaguely related issues (one exotic compile error after another)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found