circumvention: add the tor experiment (#100)
* go.mod go.sum: update all non-probe-engine deps For each line in the go.mod, run `go get -u -v $package` if the line is not an indirect dependency and is not probe-engine. Upgrading probe-engine is going to require the same spell that is used in probe-engine to update psiphon. * go get -v github.com/ooni/probe-engine@v0.5.0 This just pins to the latest probe-engine but we've not manually pinned all the other dependencieds yet. Take care of the trivial API changes in probe-engine as well, such that we can have a working build after this commit. * go.mod go.sum: pin to probe-engine dependencies Basically: remove all indirect dependencies. Merge this go.mod with the one of probe-engine, to pin dependencies. Run `go mod tidy`. * circumvention: add basic implementation of tor This needs to be polished further, of course. But at least we have now added support for running tor in the circumvention group. * Readme.md: document how to update dependencies * go get -v github.com/ooni/probe-engine@fcc9ee0a7afb * go get -v github.com/ooni/probe-engine@4d254f5b2 * nettests/tor.go: implement summary test keys
This commit is contained in:
parent
8dff1cc54a
commit
03e7d2ccac
6 changed files with 369 additions and 102 deletions
16
Readme.md
16
Readme.md
|
|
@ -31,6 +31,22 @@ Be sure you have golang >= 1.13. We use golang modules. Run
|
|||
to get information on the supported systems as well as to get
|
||||
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`
|
||||
|
||||
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.
|
||||
|
||||
## Releasing
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue