You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("unable to find Symfony PHP CLI entry (expected installer/bin/evo). Ensure the PHP installer package files are present next to the Go binary")
2034
+
}
2035
+
2036
+
funcfindPHPSystemStatusEntry() (string, error) {
2037
+
// Prefer the Symfony entry (more complete), but fall back to the bootstrapper
2038
+
// which implements `system-status` without requiring Composer deps.
2039
+
ifp, err:=findPHPSymfonyCLIEntry(); err==nil {
2040
+
returnp, nil
1969
2041
}
2042
+
returnfindPHPBootstrapperEntry()
2043
+
}
2044
+
2045
+
funcfindPHPBootstrapperEntry() (string, error) {
2046
+
candidates:= []string{}
1970
2047
1971
2048
// Prefer a sibling `evo` script next to the running executable (common install layout:
1972
2049
// `evo` bootstrapper + `evo.bin` Go binary in the same directory).
// Prefer the bootstrapper on PATH (installed alongside the Go binary).
464
-
ifp, err:=exec.LookPath("evo"); err==nil&&p!="" {
465
-
candidates=append(candidates, p)
499
+
for_, p:=rangecandidates {
500
+
p=strings.TrimSpace(p)
501
+
ifp=="" {
502
+
continue
503
+
}
504
+
fi, err:=os.Stat(p)
505
+
iferr!=nil||fi.IsDir() {
506
+
continue
507
+
}
508
+
if!looksLikePHPScript(p) {
509
+
continue
510
+
}
511
+
if!looksLikeSymfonyEntry(p) {
512
+
continue
513
+
}
514
+
returnp, nil
515
+
}
516
+
return"", fmt.Errorf("unable to find Symfony PHP CLI entry (expected installer/bin/evo). Ensure the PHP installer package files are present next to the Go binary")
517
+
}
518
+
519
+
funcfindPHPSystemStatusEntry() (string, error) {
520
+
ifp, err:=findPHPSymfonyCLIEntry(); err==nil {
521
+
returnp, nil
466
522
}
523
+
returnfindPHPBootstrapperEntry()
524
+
}
467
525
468
-
// Prefer a sibling `evo` script next to the running executable (common install layout).
0 commit comments