Skip to content

Commit ac3d719

Browse files
Present a readable version in -v (#36)
* Present a readable version (I know the -...-g stuff is pretty "standard" but it doesn't ease communication) * Fix as per CI results * Accept _make test_'s auto-updates
1 parent dff11cf commit ac3d719

File tree

4 files changed

+594
-7
lines changed

4 files changed

+594
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ APP=cmd/gonsul.go
77
APP_BINARY=bin/gonsul
88

99
# These are the values we want to pass for VERSION
10-
VERSION=$(shell git describe --abbrev=6 --always --tags)
10+
VERSION=$(shell git describe --abbrev=0 --always --tags)
1111
BUILD_DATE=$(shell date -u +%Y%m%d.%H%M%S)
1212

1313
# Setup the -ldflags option for go build here, interpolate the variable values

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ This specifies a file with configuration settings for the options described belo
174174
175175
This defines the mode that **Gonsul** should run at, having the following strategies:
176176

177-
- **`DRYRUN`** In this mode it will process the repository/folder and will __output only__ the
177+
- **`DRYRUN`** In this mode it will process the repository/folder and will **output only** the
178178
different operations it
179179
would run, such as: inserts, updates and deletes
180180
- **`ONCE`** In this mode it will process the repository/folder and will proceed with all the
@@ -439,10 +439,10 @@ removed files from the repo and/or files added directly on consul k/v will be de
439439
sync/push files to consul k/v path (can lead to inconsistencies at the consul k/v path since removed
440440
files from the repo and/or files added directly on consul k/v will stay in the consul path because
441441
we are skipping deletions).
442-
- **`false`** _this is the default mode_ and Gonsul will not proceed with the deletes, and depending
442+
- **`false`** *this is the default mode* and Gonsul will not proceed with the deletes, and depending
443443
on the `--strategy` it is running at, will respond with some different behaviors, such as:
444444

445-
1. **`ONCE`** When running in once mode, Gonsul will terminate with __error code 10__ and output
445+
1. **`ONCE`** When running in once mode, Gonsul will terminate with **error code 10** and output
446446
to console all the Consul KV paths that are supposed to be deleted.
447447

448448
2. **`HOOK`** Gonsul will repond to the HTTP request with error 503 and will also return the

go.mod

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ go 1.16
55
require (
66
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 // indirect
77
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
8+
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 // indirect
9+
github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c // indirect
810
github.com/cbroglie/mustache v1.0.1
11+
github.com/coreos/bbolt v1.3.2 // indirect
12+
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e // indirect
13+
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
14+
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
915
github.com/emirpasic/gods v1.9.0 // indirect
1016
github.com/gliderlabs/ssh v0.3.2 // indirect
11-
github.com/google/go-cmp v0.5.5 // indirect
17+
github.com/gorilla/websocket v1.4.2 // indirect
18+
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect
19+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
1220
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
21+
github.com/jonboulle/clockwork v0.1.0 // indirect
1322
github.com/kevinburke/ssh_config v0.0.0-20180317175531-9fc7bb800b55 // indirect
1423
github.com/mattn/go-runewidth v0.0.2 // indirect
1524
github.com/namsral/flag v1.7.4-pre
@@ -18,12 +27,23 @@ require (
1827
github.com/onsi/gomega v1.10.1
1928
github.com/pelletier/go-buffruneio v0.2.0 // indirect
2029
github.com/pkg/errors v0.9.1 // indirect
30+
github.com/prometheus/tsdb v0.7.1 // indirect
2131
github.com/sergi/go-diff v1.0.0 // indirect
32+
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
33+
github.com/smartystreets/goconvey v1.6.4 // indirect
34+
github.com/soheilhy/cmux v0.1.4 // indirect
2235
github.com/src-d/gcfg v1.3.0 // indirect
2336
github.com/stretchr/objx v0.1.1 // indirect
24-
github.com/stretchr/testify v1.5.1
25-
github.com/vektra/mockery/v2 v2.9.0 // indirect
37+
github.com/stretchr/testify v1.7.0
38+
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
39+
github.com/ugorji/go v1.1.4 // indirect
40+
github.com/vektra/mockery/v2 v2.10.0 // indirect
2641
github.com/xanzy/ssh-agent v0.1.0 // indirect
42+
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
43+
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 // indirect
44+
github.com/zenazn/goji v0.9.0 // indirect
45+
go.etcd.io/bbolt v1.3.2 // indirect
46+
gopkg.in/resty.v1 v1.12.0 // indirect
2747
gopkg.in/src-d/go-billy.v4 v4.2.0 // indirect
2848
gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 // indirect
2949
gopkg.in/src-d/go-git.v4 v4.4.1

0 commit comments

Comments
 (0)