chore: increase timeout for bd version check (#871)

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen
2026-01-22 19:41:42 -05:00
committed by GitHub
parent b158ff27c2
commit 16d3a92455

View File

@@ -91,7 +91,7 @@ func (v beadsVersion) compare(other beadsVersion) int {
var beadsVersionRe = regexp.MustCompile(`bd version (\d+\.\d+(?:\.\d+)?(?:-\w+)?)`)
func getBeadsVersion() (string, error) {
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
cmd := exec.CommandContext(ctx, "bd", "version")