Feat v0.7.8 bug fixes admin gaps (#62)
All checks were successful
CI/CD / detect-changes (push) Successful in 5s
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-runners (push) Has been skipped
CI/CD / test-go-pg (push) Successful in 2m49s
CI/CD / build-and-deploy (push) Successful in 29s
CI/CD / test-sqlite (push) Successful in 2m55s

Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #62.
This commit is contained in:
2026-04-02 21:36:34 +00:00
committed by xcaliber
parent e4f0bdbd36
commit 3cdfdcf943
12 changed files with 513 additions and 204 deletions

View File

@@ -1183,9 +1183,16 @@ func (h *PackageHandler) ExportPackage(c *gin.Context) {
// Walk packagesDir/{id}/ and add all asset files
if h.packagesDir == "" {
log.Printf("[packages] export: packagesDir not set, exporting manifest only for %s", pkgID)
c.Header("X-Export-Warning", "no-assets")
return
}
pkgDir := filepath.Join(h.packagesDir, pkgID)
if _, statErr := os.Stat(pkgDir); os.IsNotExist(statErr) {
log.Printf("[packages] export: asset directory missing for %s, exporting manifest only", pkgID)
c.Header("X-Export-Warning", "no-assets")
return
}
filepath.Walk(pkgDir, func(path string, info os.FileInfo, err error) error {
if err != nil || info.IsDir() {
return nil