Skip to content

fix: Propagate non-zero tar exit in load.sh#881

Open
Silic0nS0ldier wants to merge 1 commit intobazel-contrib:mainfrom
Silic0nS0ldier:propagate-tar-failure
Open

fix: Propagate non-zero tar exit in load.sh#881
Silic0nS0ldier wants to merge 1 commit intobazel-contrib:mainfrom
Silic0nS0ldier:propagate-tar-failure

Conversation

@Silic0nS0ldier
Copy link

In oci/private/load.sh.tpl tar is invoked with process substitution, which is suppressing it's exit code.

For tar errors to be handled, wait $! is needed.

As an aside, this class of issues can be linted against with shellcheck SC2312.

@Silic0nS0ldier Silic0nS0ldier changed the title Propagate non-zero tar exit in load.sh fix: Propagate non-zero tar exit in load.sh Jan 12, 2026
@aspect-workflows
Copy link

aspect-workflows bot commented Jan 12, 2026

Test

2 test targets passed

Targets
//examples/assertion:case11_test [k8-fastbuild]                287ms
//oci/tests:test_chainguard_static_linux_amd64 [k8-fastbuild]  150ms

Total test execution time was 437ms. 47 tests (95.9%) were fully cached saving 28s.

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.

2 participants