Skip to content

Commit 33769c2

Browse files
fix for 1.25
1 parent 71b9ef1 commit 33769c2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cmd/clickhouse-backup/main.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
stdlog "log"
77
"os"
8+
"runtime"
89
"strconv"
910
"strings"
1011

@@ -557,7 +558,17 @@ func main() {
557558
if c.Bool("restore-in-place") {
558559
b.SetRestoreInPlace(true)
559560
}
560-
return b.RestoreFromRemote(c.Args().First(), c.String("tables"), c.StringSlice("restore-database-mapping"), c.StringSlice("restore-table-mapping"), c.StringSlice("partitions"), c.StringSlice("skip-projections"), c.Bool("schema"), c.Bool("d"), c.Bool("rm"), c.Bool("i"), c.Bool("rbac"), c.Bool("rbac-only"), c.Bool("configs"), c.Bool("configs-only"), c.Bool("named-collections"), c.Bool("named-collections-only"), c.Bool("resume"), c.Bool("restore-schema-as-attach"), c.Bool("replicated-copy-to-detached"), c.Bool("hardlink-exists-files"), false, version, c.Int("command-id"))
561+
// CI/CD Diagnostic: Log function signature validation for Go 1.25 + ClickHouse 23.8 compatibility
562+
log.Debug().Fields(map[string]interface{}{
563+
"operation": "restore_remote_cli_validation",
564+
"go_version": runtime.Version(),
565+
"hardlink_exists_files": c.Bool("hardlink-exists-files"),
566+
"drop_if_schema_changed": c.Bool("drop-if-schema-changed"),
567+
"function_signature": "RestoreFromRemote",
568+
"parameter_count": "expected_22_parameters",
569+
"issue_diagnosis": "hardcoded_false_should_be_cli_flag",
570+
}).Msg("diagnosing CI Build/Test (1.25, 23.8) function signature mismatch")
571+
return b.RestoreFromRemote(c.Args().First(), c.String("tables"), c.StringSlice("restore-database-mapping"), c.StringSlice("restore-table-mapping"), c.StringSlice("partitions"), c.StringSlice("skip-projections"), c.Bool("schema"), c.Bool("d"), c.Bool("rm"), c.Bool("i"), c.Bool("rbac"), c.Bool("rbac-only"), c.Bool("configs"), c.Bool("configs-only"), c.Bool("named-collections"), c.Bool("named-collections-only"), c.Bool("resume"), c.Bool("restore-schema-as-attach"), c.Bool("replicated-copy-to-detached"), c.Bool("hardlink-exists-files"), c.Bool("drop-if-schema-changed"), version, c.Int("command-id"))
561572
},
562573
Flags: append(cliapp.Flags,
563574
cli.StringFlag{

0 commit comments

Comments
 (0)