feat: add checksum for git downloader

This commit is contained in:
2025-06-20 19:35:22 +03:00
parent b5474b1eb4
commit 6bccce1db4
15 changed files with 343 additions and 65 deletions

View File

@ -20,11 +20,12 @@ import (
"context"
"encoding/hex"
"fmt"
"log/slog"
"os"
"strings"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/dl"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/dlcache"
"gitea.plemya-x.ru/Plemya-x/ALR/pkg/dl"
"gitea.plemya-x.ru/Plemya-x/ALR/pkg/dlcache"
)
type SourceDownloader struct {
@ -76,6 +77,7 @@ func (s *SourceDownloader) DownloadSources(
opts.DlCache = dlcache.New(s.cfg)
slog.Warn("opts", "opts", opts)
err := dl.Download(ctx, opts)
if err != nil {
return err