-
Notifications
You must be signed in to change notification settings - Fork 132
Fix build failures on MacOS by addressing bash compatibility and OpenSSL download issues #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@JoshMcCullough 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
Co-authored-by: JoshMcCullough <4859660+JoshMcCullough@users.noreply.github.com>
Co-authored-by: JoshMcCullough <4859660+JoshMcCullough@users.noreply.github.com>
Co-authored-by: JoshMcCullough <4859660+JoshMcCullough@users.noreply.github.com>
|
@joan7770 please report back here if this resolves the Mac build issues or what work is left to do. |
|
@JoshMcCullough Builds fine now |
|
Very nice, @JoshMcCullough |
…SSL download issues (TeslaGov#153) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JoshMcCullough <4859660+JoshMcCullough@users.noreply.github.com>
This PR addresses the MacOS build issues identified in #132 with minimal, surgical changes to ensure cross-platform compatibility without breaking existing Linux workflows.
Issues Fixed
1. Bash Version Compatibility
MacOS ships with bash 3.2.57 which doesn't support
declare -A(associative arrays require bash 4.0+). The scripts used hardcoded/bin/bashshebangs.Solution: Updated shebangs from
#!/bin/bash -euto#!/usr/bin/env bashwith separateset -eulines, allowing the system to find the appropriate bash version.2. OpenSSL Download Failures
The OpenSSL download URL redirects from
openssl.orgto GitHub, but curl wasn't following redirects, causing silent failures.Solution:
https://github.com/openssl/openssl/releases/download/openssl-${SSL_VERSION}/openssl-${SSL_VERSION}.tar.gz--locationflag to curl for redirect handling3. Docker Logging Driver
The default
journaldlogging driver isn't available on MacOS, requiring manual environment variable changes.Solution: Changed default from
journaldtojson-filein docker-compose, which works universally. Linux users can still setLOG_DRIVER=journaldif preferred.Documentation Updates
json-fileandjournaldoptionsTesting
✅ All bash scripts pass syntax validation
✅ Script functions execute correctly with associative arrays
✅ Changes are minimal and focused on actual compatibility issues
✅ No breaking changes to existing workflows
The build should now work seamlessly on both Linux and MacOS without requiring manual file modifications.
Fixes #132.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.