chore: upgrade all dependencies (#159)

See https://github.com/ooni/probe-engine/issues/1004
This commit is contained in:
Simone Basso 2020-11-13 06:58:39 +01:00 committed by GitHub
commit c4da81e894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 192 additions and 200 deletions

View file

@ -97,25 +97,7 @@ To update bundled binary data use:
## Updating dependencies
1. update every direct dependency in `go.mod` except `probe-engine`
using `go get -u -v $dependency`:
```bash
for name in `grep -v indirect go.mod | grep -v probe-engine | awk '/^\t/{print $1}'`; do \
go get -u -v $name; \
done
```
2. pin to the latest version of the `probe-engine` with
`go get -v github.com/ooni/probe-engine@TAG`
3. remove all indirect dependencies from `go.mod` and merge the
content of `probe-engine`'s `go.mod` into our `go.mod`
4. `go mod tidy`
The rationale of this procedure is that we want to pin exactly to
a specific version of psiphon and of its dependencies.
`go get -u -v ./... && go mod tidy`
## Releasing