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

Fix "set pipefail" syntax #11

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Fix "set pipefail" syntax #11

merged 1 commit into from
Feb 11, 2020

Conversation

marcelm
Copy link
Contributor

@marcelm marcelm commented Feb 11, 2020

set -e pipefail will not work as intended since pipefail must be set with -o pipefail. No error occurs at the moment because set assigns all the extra arguments to $1, $2, etc.

`set -e pipefail` will not work as intended since `pipefail` must be set with `-o pipefail`. No error occurs at the moment because `set` assigns all the extra arguments to $1, $2, etc.
@goanpeca
Copy link
Member

Thanks!

So what was happening?

@marcelm
Copy link
Contributor Author

marcelm commented Feb 11, 2020

The intention of set -eo pipefail is to let things like non-existing-command | cat fail. With set -e pipefail, it does not fail.

I just saw the command in the log output. I didn’t experience this problem, but it could lead to hard-to-find bugs (CI passes although there’s an error).

@goanpeca
Copy link
Member

The intention of set -eo pipefail is to let things like non-existing-command | cat fail. With set -e pipefail, it does not fail.

I just saw the command in the log output. I didn’t experience this problem, but it could lead to hard-to-find bugs (CI passes although there’s an error).

Indeed! thanks, will make a release in a couple of days and try to add 32 bit support and fix an issue on windows.

@goanpeca goanpeca merged commit aa03dee into conda-incubator:master Feb 11, 2020
@marcelm marcelm deleted the patch-1 branch February 11, 2020 16:24
@marcelm
Copy link
Contributor Author

marcelm commented Feb 11, 2020

Thanks :-)

@goanpeca
Copy link
Member

Thank you :-) !

@goanpeca goanpeca added this to the v1.0.3 milestone Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants