fix: binary version check on update — force re-download when outdated

This commit is contained in:
li committed 2026-03-25 22:01:40 +08:00
1 parent 550a932c23
commit aa689e89d0
4 files changed
+29 -11

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
const (
version = "5.7.2"
version = "5.8.0"
defaultWorkdir = "."
defaultTimeout = 7200 // seconds (2 hours)
defaultCoverageTarget = 90.0
+3 -3
View File
@@ -3051,7 +3051,7 @@ func TestVersionFlag(t *testing.T) {
}
})
want := "codeagent-wrapper version 5.7.2\n"
want := "codeagent-wrapper version 5.8.0\n"
if output != want {
t.Fatalf("output = %q, want %q", output, want)
@@ -3067,7 +3067,7 @@ func TestVersionShortFlag(t *testing.T) {
}
})
want := "codeagent-wrapper version 5.7.2\n"
want := "codeagent-wrapper version 5.8.0\n"
if output != want {
t.Fatalf("output = %q, want %q", output, want)
@@ -3083,7 +3083,7 @@ func TestVersionLegacyAlias(t *testing.T) {
}
})
want := "codex-wrapper version 5.7.2\n"
want := "codex-wrapper version 5.8.0\n"
if output != want {
t.Fatalf("output = %q, want %q", output, want)