Skip to content

Commit

Permalink
restic-rest-server: update to 0.12.1.
Browse files Browse the repository at this point in the history
Fix PKGNAME while here.

Changelog for rest-server 0.12.1 (2023-07-09)
============================================

The following sections list the changes in rest-server 0.12.1 relevant
to users. The changes are ordered by importance.

Summary
-------

 * Fix #230: Fix erroneous warnings about unsupported fsync
 * Fix #238: API: Return empty array when listing empty folders
 * Enh #217: Log to stdout using the `--log -` option

Details
-------

 * Bugfix #230: Fix erroneous warnings about unsupported fsync

   Due to a regression in rest-server 0.12.0, it continuously printed `WARNING: fsync is not
   supported by the data storage. This can lead to data loss, if the system crashes or the storage is
   unexpectedly disconnected.` for systems that support fsync. We have fixed the warning.

   restic/rest-server#230
   restic/rest-server#231

 * Bugfix #238: API: Return empty array when listing empty folders

   Rest-server returned `null` when listing an empty folder. This has been changed to returning
   an empty array in accordance with the REST protocol specification. This change has no impact on
   restic users.

   restic/rest-server#238
   restic/rest-server#239

 * Enhancement #217: Log to stdout using the `--log -` option

   Logging to stdout was possible using `--log /dev/stdout`. However, when the rest server is run
   as a different user, for example, using

   `sudo -u restic rest-server [...] --log /dev/stdout`

   This did not work due to permission issues.

   For logging to stdout, the `--log` option now supports the special filename `-` which also
   works in these cases.

   restic/rest-server#217
  • Loading branch information
0-wiz-0 committed Oct 19, 2023
1 parent a50354b commit 6f5bcca
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 129 deletions.
8 changes: 3 additions & 5 deletions sysutils/restic-rest-server/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.2 2023/10/15 12:04:32 bsiegert Exp $
# $NetBSD: Makefile,v 1.3 2023/10/19 12:57:29 wiz Exp $

DISTNAME= ${GITHUB_PROJECT}-${GITHUB_TAG}
PKGNAME= restic-reset-server-0.12.0
PKGREVISION= 1
DISTNAME= rest-server-0.12.1
PKGNAME= restic-${DISTNAME}
CATEGORIES= sysutils www
MASTER_SITES= ${MASTER_SITE_GITHUB:=restic/}
GITHUB_PROJECT= rest-server
Expand All @@ -19,6 +18,5 @@ GO_BUILD_PATTERN= ./cmd/rest-server

.include "go-modules.mk"


.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"
Loading

0 comments on commit 6f5bcca

Please sign in to comment.