build: drop go Dep, switch to modules, support Go 1.13

bump enumer to v1.1.1
bump golangci-lint to v1.17.1

no `go mod tidy` because 1.13 and 1.12 seem to alter each other's output

fixes #112
This commit is contained in:
Christian Schwarz
2019-09-03 14:45:18 +02:00
parent 2e0ff9a582
commit 77d3a1ad4d
18 changed files with 519 additions and 1169 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ The following list may be incomplete, feel free to submit a PR with an update:
Compile From Source
~~~~~~~~~~~~~~~~~~~
Producing a release requires **Go 1.9** or newer and **Python 3** + **pip3** + ``docs/requirements.txt`` for the Sphinx documentation.
Producing a release requires **Go 1.11** or newer and **Python 3** + **pip3** + ``docs/requirements.txt`` for the Sphinx documentation.
A tutorial to install Go is available over at `golang.org <https://golang.org/doc/install>`_.
Python and pip3 should probably be installed via your distro's package manager.
@@ -58,9 +58,9 @@ and serves as a reference for build dependencies and procedure:
cd zrepl
sudo docker build -t zrepl_build -f build.Dockerfile .
sudo docker run -it --rm \
-v "${PWD}:/go/src/github.com/zrepl/zrepl" \
-v "${PWD}:/src" \
--user "$(id -u):$(id -g)" \
zrepl_build make vendordeps release
zrepl_build make release
Alternatively, you can install build dependencies on your local system and then build in your ``$GOPATH``:
@@ -72,7 +72,7 @@ Alternatively, you can install build dependencies on your local system and then
python3 -m venv3
source venv3/bin/activate
./lazy.sh devsetup
make vendordeps release
make release
The Python venv is used for the documentation build dependencies.
If you just want to build the zrepl binary, leave it out and use `./lazy.sh godep` instead.