From 20deac2ce1ee11c401bba217c6fcd6b4e79f7839 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 12 Apr 2026 18:32:26 +0200 Subject: [PATCH] fix(ci): rename .archlinux files to .pkg.tar.zst for repo-add repo-add validates file extensions and rejects .archlinux files. Rename them to .pkg.tar.zst when symlinking into the repo directory. --- magefile.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/magefile.go b/magefile.go index fa96968ba..37ca1d7b0 100644 --- a/magefile.go +++ b/magefile.go @@ -1457,7 +1457,9 @@ func (Release) RepoPacman(ctx context.Context) error { } for _, pkg := range pkgs { abs, _ := filepath.Abs(pkg) - dst := filepath.Join(repoDir, filepath.Base(pkg)) + // repo-add requires .pkg.tar.zst extension, nfpm archlinux files are .archlinux + base := strings.TrimSuffix(filepath.Base(pkg), ".archlinux") + ".pkg.tar.zst" + dst := filepath.Join(repoDir, base) os.Remove(dst) if err := os.Symlink(abs, dst); err != nil { return err @@ -1466,7 +1468,7 @@ func (Release) RepoPacman(ctx context.Context) error { // repo-add creates vikunja.db.tar.gz and vikunja.files.tar.gz dbPath := filepath.Join(repoDir, "vikunja.db.tar.gz") - repoPkgs, _ := filepath.Glob(filepath.Join(repoDir, "*.archlinux")) + repoPkgs, _ := filepath.Glob(filepath.Join(repoDir, "*.pkg.tar.zst")) repoAddArgs := append([]string{dbPath}, repoPkgs...) if err := runAndStreamOutput(ctx, "repo-add", repoAddArgs...); err != nil { return fmt.Errorf("repo-add for %s: %w", repoArch, err)