Skip to content

Conversation

@jmgilman
Copy link
Contributor

Summary

  • Fixed test scripts failing on Alpine Linux due to missing bash

Changes

  • Changed shebang from #!/bin/bash to #!/bin/sh
  • Changed source to . (POSIX equivalent)
  • Changed bash -c to sh -c in check commands

Root Cause

Alpine Linux only has /bin/sh (busybox ash) by default, not /bin/bash. The test scripts were using bash-specific syntax which caused "no such file or directory" errors when running on Alpine.

Test plan

  • CI passes on this PR (tests run on Ubuntu, Debian, and Alpine)

🤖 Generated with Claude Code

jmgilman and others added 2 commits January 9, 2026 16:41
Alpine Linux doesn't have bash installed by default. Changed test
scripts to use #!/bin/sh and POSIX-compatible syntax:
- Changed shebang from #!/bin/bash to #!/bin/sh
- Changed 'source' to '.' (POSIX equivalent)
- Changed 'bash -c' to 'sh -c' in check commands

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The devcontainer test library requires bash. Plain alpine:3.19 doesn't
have bash installed, causing test failures. Updated to use the official
devcontainer base images which include bash:

- Changed alpine:3.19 to mcr.microsoft.com/devcontainers/base:alpine
- Changed debian:bookworm to mcr.microsoft.com/devcontainers/base:debian
- Reverted test scripts back to #!/bin/bash since the test library requires it

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman jmgilman merged commit 5949a31 into master Jan 10, 2026
4 checks passed
@jmgilman jmgilman deleted the fix/alpine-test-compatibility branch January 10, 2026 00:45
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