Upgrade to probe-engine@v0.13.0 and fix Psiphon logic (#138)

* go.mod go.sum: pin to ooni/probe-engine@v0.13.0, update all other deps

Make sure dependencies of probe-engine are at the same exact version to
which is probe-engine, to avoid any possible issue.

* Readme.md: clarify the procedure for updating deps
This commit is contained in:
Simone Basso 2020-06-15 14:57:00 +02:00 committed by GitHub
commit ef4b1aee76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 30 deletions

View file

@ -78,10 +78,16 @@ instructions on how to install dependencies.
## Updating dependencies
1. update every direct dependency in `go.mod` except `probe-engine`
using `go get -u -v $dependency`
using `go get -u -v $dependency`:
```
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`
`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`