You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep: --repo-name is required for Pacman packages only in the input root, not in subdirectories #96
internal/cli/generate.go:567-570: hasPacmanPackages uses filepath.Glob(filepath.Join(inputDir, "*.pkg.tar.*")), so it sees only the top level of the input directory.
internal/cli/generate.go:573-585: the Debian check beside it, hasDebianPackages, uses the recursive scanner that generation itself uses.
So a .pkg.tar.zst in the input root is refused without --repo-name, but the same file in a subdirectory is published as custom.db.tar.zst (or the origin's name).
Why it matters: the database name is what clients put in pacman.conf; a silent fallback name breaks clients and contradicts the spec.
Suggested fix: make hasPacmanPackages use the scanner (scanner.TypePacman), like hasDebianPackages, and add a test with a Pacman package in a subdirectory.
Activity