feat: add self-upgrade command with GitHub Releases, atomic flow, and cross-platform support

This commit is contained in:
fantiu committed 2026-04-02 16:34:51 +08:00
1 parent a0dc5d6183
commit a18ce2e54d
14 files changed
+2114 -263

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ func isRetriable(err error) bool {
return true
}
errStr := err.Error()
for _, pattern := range []string{"connection reset", "connection refused", "timeout", "temporary failure", "EOF"} {
for _, pattern := range []string{"connection reset", "connection refused", "timeout", "temporary failure", "eof"} {
if strings.Contains(strings.ToLower(errStr), pattern) {
return true
}