Skip to content

ci: Set -o pipefail in CI - #299

Merged
martin-g merged 2 commits into
mainfrom
fix/pipefail_ci
Sep 22, 2025
Merged

martin-g merged 2 commits into
mainfrom
fix/pipefail_ci

Conversation

@Kriskras99

@Kriskras99 Kriskras99 commented Sep 22, 2025 •

Copy link
Copy Markdown
Contributor

By default curl | sh will have sh's exit code, with this option curl's exit code is propagated.

See also unicode-org/icu4x#5473 for a similar issue.

By default `curl | sh` will have `sh`'s exit code, with this option `curl`'s exit code is propagated.
@Kriskras99
Kriskras99 requested a review from martin-g September 22, 2025 09:45
key: ${{ runner.os }}-target-cache1-stable-${{ hashFiles('**/Cargo.lock') }}

- name: Install wasm-pack
shell: /usr/bin/bash -o pipefail -e {0}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An obscure fact about GitHub Actions is that if you don't set the shell, you get bash without pipefail, but if you set the shell to bash explicitly, you get pipefail implicitly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you get pipefail implicitly

obscure indeed!

Still it does not harm to be explicit!

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed :)

Comment thread .github/workflows/test-lang-rust-ci.yml Resolved
@martin-g
martin-g merged commit 12c56aa into main Sep 22, 2025
@martin-g martin-g changed the title fix: Set -o pipefail in CI ci: Set -o pipefail in CI Sep 22, 2025
@Kriskras99
Kriskras99 deleted the fix/pipefail_ci branch December 18, 2025 14:19
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.

3 participants