Skip to content

fix(mise): add bash shebang to analyze and test task scripts - #274

Merged
richardthe3rd merged 1 commit into
mainfrom
fix/mise-task-shell-pipefail
May 16, 2026
Merged

fix(mise): add bash shebang to analyze and test task scripts#274
richardthe3rd merged 1 commit into
mainfrom
fix/mise-task-shell-pipefail

Conversation

@richardthe3rd

Copy link
Copy Markdown
Owner

The analyze and test tasks use set -o pipefail, which is bash-specific.
On systems where /bin/sh is dash or another POSIX shell (not bash), mise
was invoking these scripts with sh and failing immediately with
"Illegal option -o pipefail".

Adding #!/usr/bin/env bash as the first line of each multiline run block
causes mise to execute them with bash, matching the scripts' requirements.

The analyze and test tasks use set -o pipefail, which is bash-specific.
On systems where /bin/sh is dash or another POSIX shell (not bash), mise
was invoking these scripts with sh and failing immediately with
"Illegal option -o pipefail".

Adding #!/usr/bin/env bash as the first line of each multiline run block
causes mise to execute them with bash, matching the scripts' requirements.
Copilot AI review requested due to automatic review settings May 16, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes mise task execution on systems where /bin/sh is not Bash (e.g., dash) by ensuring the multiline test and analyze task scripts run under Bash, which is required for set -o pipefail.

Changes:

  • Added a Bash shebang to the multiline run blocks for tasks.test and tasks.analyze.
  • Prevents /bin/sh incompatibility failures (Illegal option -o pipefail) when running these tasks.

@github-actions

Copy link
Copy Markdown
Contributor

LCOV of commit f7ad154 during CI #183

Summary coverage rate:
  lines......: 77.1% (2439 of 3163 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@codecov

codecov Bot commented May 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your preview deployment is ready!

Preview URL: https://fix-mise-task-shell-pipefail.staging-cambeerfestival.pages.dev

This preview will be automatically updated when you push new commits to this PR.

@richardthe3rd
richardthe3rd merged commit fed169c into main May 16, 2026
16 checks passed
@richardthe3rd
richardthe3rd deleted the fix/mise-task-shell-pipefail branch May 16, 2026 08:16
This was referenced May 16, 2026
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