Skip to content

v0.2.1: Apply upstream (rest-server) API changes (#3)

Latest
Compare
Choose a tag to compare
@mholt mholt released this 17 Jan 04:31
· 3 commits to master since this release
In June 2018, dependency rest-server[1] cleaned up its API a
little[2], breaking the Caddy restic plugin build in the process.

Attempting to build Caddy with the plugin leads to the following
errors:

```
build/src/github.com/restic/caddy/setup.go:24:4: undefined: restserver.Config
build/src/github.com/restic/caddy/setup.go:40:19: undefined: restserver.NewMux
```

This commit applies the upstream API changes to fix the errors.

[1]: https://github.com/restic/rest-server
[2]: https://github.com/restic/rest-server/pull/67