Skip to content

GHA: fail early if mport did not complete the install step - #2663

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:midnightbsd-check-early
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:midnightbsd-check-early

Conversation

@vszakats

@vszakats vszakats commented Oct 7, 2026

Copy link
Copy Markdown
Member

MidnightBSD's mport install is prone to return a non-zero exit code on
success (hence the need to use || true; also unrelated to the grep
filtering, needed to avoid log noise for no built-in option for this).
Work around by verifying success explicitly, so that a truly failed
install command fails in the 'install prereqs' step, instead of raising
a confusing error (e.g. "cmake: not found") in the step after.

Follow-up to b7f4e55 #2120
Follow-up to e4f700e #1948

MidnightBSD's `mport install` is prone to return a non-zero exit code on
success (hence the need to use `|| true`; also unrelated to the `grep`
filtering, needed to avoid log noise for no built-in option for this).
Work around by verifying success explicitly, so that a truly failed
install command fails in the 'install prereqs' step, instead of raising
a confusing error (e.g. "cmake: not found") in the step after.

Follow-up to b7f4e55 libssh2#2120
Follow-up to e4f700e libssh2#1948
@vszakats vszakats closed this in 18aebe0 Oct 7, 2026
@vszakats
vszakats deleted the midnightbsd-check-early branch October 7, 2026 18:53
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.

1 participant