Update dependencies and add gofumpt Makefile target

Bump cc-backend to v1.5.4 and cc-lib to v2.12.0 with transitive
dependency updates, add a `make fmt` target running gofumpt, ignore
the dist directory, and reformat multi-line calls to gofumpt style.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Entire-Checkpoint: 09016e793f9b
This commit is contained in:
2026-07-13 10:15:13 +02:00
parent 8cd5cf62b4
commit 5cb80a03df
6 changed files with 163 additions and 225 deletions
+2 -1
View File
@@ -177,7 +177,8 @@ func run() error {
}
cclog.Infof("Cleaning up checkpoints older than %s...", from.Format(time.RFC3339))
n, err := metricstore.CleanupCheckpoints(
metricstore.Keys.Checkpoints.RootDir, cleanupDir, from.Unix(), deleteMode)
metricstore.Keys.Checkpoints.RootDir, cleanupDir, from.Unix(), deleteMode,
)
if err != nil {
return fmt.Errorf("checkpoint cleanup: %w", err)
}
+4 -2
View File
@@ -49,7 +49,8 @@ func (s *Server) init() error {
if flagDev {
cclog.Print("Enable Swagger UI!")
s.router.HandleFunc("GET /swagger/", httpSwagger.Handler(
httpSwagger.URL("http://"+config.Keys.Address+"/swagger/doc.json")))
httpSwagger.URL("http://"+config.Keys.Address+"/swagger/doc.json"),
))
}
return nil
@@ -81,7 +82,8 @@ func (s *Server) Start(ctx context.Context) error {
if config.Keys.CertFile != "" && config.Keys.KeyFile != "" {
cert, err := tls.LoadX509KeyPair(
config.Keys.CertFile, config.Keys.KeyFile)
config.Keys.CertFile, config.Keys.KeyFile,
)
if err != nil {
return fmt.Errorf("loading X509 keypair (check 'https-cert-file' and 'https-key-file' in config.json): %w", err)
}