mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #265] [MERGED] fix: align compose checks with docker compose #278
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/265
Author: @mason5052
Created: 4/15/2026
Status: ✅ Merged
Merged: 4/22/2026
Merged by: @asdek
Base:
feature/next-release← Head:codex/issue-254-compose-check-alignment📝 Commits (2)
eea0a86fix: align compose checks with docker compose92232f5fix: accept compose version output on error📊 Changes
3 files changed (+85 additions, -16 deletions)
View changed files
📝
backend/cmd/installer/checker/helpers.go(+9 -8)📝
backend/cmd/installer/checker/helpers_test.go(+64 -0)📝
backend/cmd/installer/wizard/locale/locale.go(+12 -8)📄 Description
Summary
docker-compose --versiondocker composeProblem
Issue #254 reports installation trouble on Windows, and the current installer logic contains a confusing mismatch.
The checker accepts either
docker compose versionor legacydocker-compose --version, but the processor later executes onlydocker compose .... That means the preflight check can succeed in environments where the actual install command will still fail.Solution
Make the checker validate the same command path that PentAGI actually uses at runtime.
checkDockerComposeVersion()now treatsdocker compose versionas the only source of truthdocker-composealone is not enoughThis keeps the fix narrowly focused on validation/runtime alignment without changing the existing minimum version policy or the compose processor itself.
User Impact
Users now get an earlier and more accurate failure when the Docker Compose v2 plugin is missing, instead of passing preflight checks and failing later during execution. The installer guidance is also clearer about what needs to be installed.
Closes #254.
Test Plan
go test ./cmd/installer/checker/... -run 'TestCheckDockerComposeVersionWithRunner|TestExtractVersionFromOutput|TestCheckVersionCompatibility'go test ./cmd/installer/wizard/localegit diff --checkNotes
go test ./cmd/installer/checker/...still fails on this Windows host because of a pre-existingTestCheckFileExistsAndReadableissue unrelated to this PR. The targeted compose/version tests added in this change pass successfully.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.