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

Failures in basic.mk recipes can be lost in pipes #69

Open
mykter opened this issue Jul 4, 2019 · 1 comment
Open

Failures in basic.mk recipes can be lost in pipes #69

mykter opened this issue Jul 4, 2019 · 1 comment
Labels

Comments

@mykter
Copy link

mykter commented Jul 4, 2019

basic.mk is my go-to starting point for Go projects, thanks!

I noticed that a CI job of mine was missing golint, but make all was succeeding. The golint | tee approach was hiding the error return code.

Adding .SHELLFLAGS = -o pipefail -c fixed it for me (i.e. the build now correctly fails if golint is missing).

I see basic.mk has moved on a bit from the version I'm working from, I don't know if the greps in the pipes might mean this approach isn't viable any more?

Just raising this issue in case it's helpful - this isn't an issue with the weather tool, but I couldn't see a 'home' repo for basic.mk. Please do close it if this is the wrong project or this isn't a problem in your use case!

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.76. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Jul 4, 2019
@mykter mykter changed the title Errors in basic.mk can be lost in pipes Failures in basic.mk recipes can be lost in pipes Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant