Skip to content

Parse Buildx versions portably#20

Merged
OziinG merged 1 commit intomainfrom
fix/release-buildx-parser
Apr 30, 2026
Merged

Parse Buildx versions portably#20
OziinG merged 1 commit intomainfrom
fix/release-buildx-parser

Conversation

@OziinG
Copy link
Copy Markdown
Contributor

@OziinG OziinG commented Apr 30, 2026

Summary

  • fix the EC2 bootstrap Buildx version parser for Amazon Linux/GNU awk
  • keep the Buildx >= 0.17.0 guard, but avoid escaped-dot regex ambiguity

Root cause

The live SSM run installed Buildx v0.33.0, then failed because the awk matcher did not extract the version, so buildx_meets_min_version returned non-zero under set -euo pipefail.

Verification

  • bash -n scripts/ec2-bootstrap-and-deploy.sh
  • npm test
  • npm run lint
  • npx prisma validate
  • npm run build

Refs #3

Use a bracketed-dot awk matcher so the EC2 bootstrap can parse Docker Buildx versions on Amazon Linux 2023 and complete runtime verification.\n\nConstraint: AWS-RunShellScript runs the bootstrap with GNU awk and set -euo pipefail.\nRejected: Skip Buildx verification | compose image builds require buildx >=0.17.0.\nConfidence: high\nScope-risk: narrow\nDirective: Avoid regex backslash ambiguity in shell scripts executed over SSM.\nTested: bash -n scripts/ec2-bootstrap-and-deploy.sh; npm test; npm run lint; npx prisma validate; npm run build\nNot-tested: Live EC2 redeploy after this main-based commit pending merge.\n\nCo-authored-by: OmX <omx@oh-my-codex.dev>
@OziinG OziinG merged commit a442148 into main Apr 30, 2026
2 checks passed
@OziinG OziinG deleted the fix/release-buildx-parser branch April 30, 2026 06:51
@OziinG OziinG mentioned this pull request Apr 30, 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.

1 participant