mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
* fix(plan-orchestrate): detect ecc@ecc marketplace + emit ecc: agent prefix (#2316) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(ci): resync lockfiles with package.json (eslint 10) + migrate yarn.lock to Yarn 4 format package.json requires eslint@^10.6.0 but the committed locks pinned 9.39.2, so npm ci aborted and Yarn 4 hardened mode rejected the stale v1-classic yarn.lock (YN0028). Regenerate package-lock.json and rewrite yarn.lock in Yarn 4 (berry) format so npm ci and immutable yarn installs both pass. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(ci): require clean probe exit for Windows shell/bash detection; add pyyaml dev dep Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: affaan <affaan@itomarkets.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
81af407619
commit
6fac227f7a
7 changed files with 2279 additions and 1819 deletions
|
|
@ -97,7 +97,10 @@ function findShellBinary() {
|
|||
windowsHide: true,
|
||||
timeout: 30000,
|
||||
});
|
||||
if (!probe.error) {
|
||||
// A candidate is only usable if it both spawns AND exits cleanly. The
|
||||
// Windows System32 bash.exe WSL launcher spawns without error but exits
|
||||
// non-zero when no distro is installed, so !probe.error alone is not enough.
|
||||
if (!probe.error && probe.status === 0) {
|
||||
_cachedShell = candidate;
|
||||
return _cachedShell;
|
||||
}
|
||||
|
|
@ -118,7 +121,9 @@ function findBashBinary() {
|
|||
|
||||
for (const candidate of candidates) {
|
||||
const probe = spawnSync(candidate, ['-c', ':'], { stdio: 'ignore', windowsHide: true, timeout: 30000 });
|
||||
if (!probe.error) {
|
||||
// Require a clean exit, not just a successful spawn: the Windows System32
|
||||
// bash.exe WSL stub spawns fine but exits non-zero with no distro installed.
|
||||
if (!probe.error && probe.status === 0) {
|
||||
_cachedBash = candidate;
|
||||
return _cachedBash;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue