1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
Alberto Bertogli
5c09138db8 chasquid-util: Remove dependency on docopt-go
The docopt-go library is quite convenient, but it has been abandoned for
a while :(

Since we only use it for chasquid-util, this patch removes it and
replaces it with a custom small parser, that is a reasonable fit for the
required use cases.

The patch also adds a couple of tests to increase coverage.

NOTE: docopt-go accepted some undocumented behaviour, in particular the
use of "-a b" instead of "-a=b". The new parser does not, so some
user scripts may require updating.

I think this should be rare enough not to be worth the complexity of
adjusting the parser to allow it.
2021-01-16 23:21:35 +00:00
Alberto Bertogli
bee37ef7a4 modules: Update blitiri.com.ar/go/spf to v1.1.1
This patch updates the blitiri.com.ar/go/spf dependency to v1.1.1, which
includes a fix for potential mismatches with a:, mx: and ptr:.
2020-07-28 02:12:29 +01:00
Alberto Bertogli
d781b3f403 Update blitiri.com.ar/go/systemd to v1.1.0
This patch updates the modules to blitiri.com.ar/go/systemd v1.1.0.

There are no significant changes, but it's the first version which
supports go modules.
2020-05-29 02:04:07 +01:00
Alberto Bertogli
b4c8244e48 modules: Update blitiri.com.ar/go/spf to v1.1.0
This patch updates the modules to blitiri.com.ar/go/spf v1.1.0.

There are no significant changes, but it's the first version which
includes go modules.
2020-05-22 22:41:39 +01:00
Alberto Bertogli
0f686399b6 modules: Update blitiri.com.ar/go/log to v1.1.0
This patch updates the modules to blitiri.com.ar/go/log v1.1.0.

That version includes new APIs we will rely on in subsequent patches.
They are experimental but it should be fine for our case, and we can
adjust if they change.
2020-05-22 20:08:14 +01:00
Alberto Bertogli
aacd50e87a modules: Update Go module versions
This patch updates the Go module versions to the latest available.
2020-05-22 12:59:29 +01:00
Alberto Bertogli
7909b479eb config: Tidy default handling and comparisons in tests
This patch tidies how defaults are handled in the config, using a new
logic to allow "overriding" one config (the default) with another (the
user supplied).

It also improves how the comparisons are done in the tests, using the
more convenient "github.com/google/go-cmp/cmp" package, which also
prints nice diffs on errors.

This is in preparation for a future path where the override mechanism
will be reused.
2020-05-16 23:48:09 +01:00
Alberto Bertogli
50986a7b7e Update protobuf library to v2
There is a new protobuf library (and corresponding code generator) for
Go: google.golang.org/protobuf.

It is fairly compatible with the previous v1 API
(github.com/golang/protobuf), but there are some changes.

This patch adjusts the code and generated files to the new API.

The on-wire/on-disk format remains unchanged so this should be
transparent to the users.
2020-05-16 10:12:51 +01:00
Alberto Bertogli
35c2d1d485 modules: Update go module versions
This patch updates the Go module versions to the latest available.
2020-03-27 08:55:34 +00:00
Thor77
80b4f7f832 Add support for go modules 2019-10-19 00:45:18 +01:00