Skip to content

cargo-action-fmt can "swallow" error return codes #153

@jamesmunns

Description

@jamesmunns

Hi there! In tosc-rs/mnemos#226 (comment) we realized that piping to cargo-action-fmt seemed to swallow the error code output of cargo check, without failing the build in some other way.

Normally this should be fixed with set -o pipefail, but we are also using just.

This is extra weird because in this case cargo produces NO output:

james@Jamess-MacBook-Pro ➜  mnemos git:(eliza/forced-x86-target) cargo check --lib --bins --examples --tests --benches --all-features --package mnemos-x86_64-bootloader --message-format=json
error: no library targets found in package `mnemos-x86_64-bootloader`

This may not be reasonable for you to fix, but thought I would share just in case!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions