Skip to content

Conversation

@maniSbindra
Copy link
Contributor

Summary

This PR fixes issue #210 where the devcontainer fails to load on Mac Apple Silicon.

Problem

When opening the VS Code workspace in a devcontainer on Mac (ARM/Apple Silicon), the build fails with:

E: Unable to correct problems, you have held broken packages.
X Error: Failed to install pwsh
task: Failed to run task "init": task: Failed to run task "runtime:setup": task: Failed to run task "runtime:setup:pwsh": exit status 1

This occurs because PowerShell apt packages are not available for ARM64 architecture.

Solution

Added ARM64 architecture detection in .taskfiles/scripts/setup_pwsh.sh:

  • Detect ARM64 architecture (aarch64 or arm64)
  • When ARM64 is detected, install PowerShell via .NET global tool instead of apt packages
  • Install .NET SDK 8.0 if not already present
  • Gracefully handle cases where PowerShell installation might fail (it's not critical for development)

Testing

  • Verified devcontainer now loads successfully on Mac Apple Silicon
  • The fix detects ARM64 and uses the alternative installation method

Closes #210

Add ARM64 architecture detection in setup_pwsh.sh to handle Mac Apple
Silicon and other ARM64 Linux environments where PowerShell apt packages
are not available.

When ARM64 is detected:
- Install PowerShell via .NET global tool instead of apt packages
- Install .NET SDK 8.0 if not present
- Gracefully handle cases where PowerShell installation is optional

This fixes the devcontainer failing to load on Mac Apple Silicon with:
'E: Unable to correct problems, you have held broken packages.'

Closes #210
@maniSbindra maniSbindra requested a review from a team as a code owner January 26, 2026 13:20
@maniSbindra maniSbindra added this pull request to the merge queue Jan 26, 2026
Merged via the queue into main with commit aaf76e6 Jan 26, 2026
17 checks passed
@maniSbindra maniSbindra deleted the fix/210-devcontainer-arm64-pwsh branch January 26, 2026 14:03
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.

[Bug]: Devontainer not loading on Mac (Apple Silicon)

2 participants