Skip to content

ci: run the spec-clauses mise tasks under bash - #963

Merged
justin13888 merged 1 commit into
masterfrom
ci/962-spec-clauses-bash
Oct 24, 2026
Merged

justin13888 merged 1 commit into
masterfrom
ci/962-spec-clauses-bash

Conversation

@justin13888

Copy link
Copy Markdown
Collaborator

Format & Metadata fails at check-spec-clauses with sh: 1: set: Illegal option -o pipefail. mise runs an inline run script through sh, which is dash on ubuntu-latest. This failure blocks every open PR, including #955, #961 and the release PR #820.

Change

gen-spec-clauses, check-spec-clauses and test-spec-clauses in mise.toml each get shell = "bash -c". pipefail stays, because #962 notes it is load-bearing.

Verification

  • mise honours a task's shell key: a scratch task with shell = "zsh -c" reports /usr/bin/zsh as its interpreter.
  • mise run check-spec-clauses passes locally. The dash case itself is proven only by this PR's CI, since /bin/sh is bash on the dev host.

Closes #962

gen-, check- and test-spec-clauses open with `set -euo pipefail`, but
mise runs an inline `run` script through sh, which is dash on
ubuntu-latest and has no pipefail option, so Format & Metadata failed
before the check did any work. Give each task `shell = "bash -c"`.

Closes #962
@justin13888
justin13888 merged commit f8b1a87 into master Oct 24, 2026
2 of 3 checks passed
@justin13888
justin13888 deleted the ci/962-spec-clauses-bash branch October 24, 2026 17:29
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.

ci: spec-clauses mise tasks use set -o pipefail under sh, which is dash on ubuntu-latest

1 participant