feat: use go1.16 and resources embedding (#235)
* feat: use go1.16 embedding for resources We want to embed everything that can be easily embedded. We should, at a minimum, replace the downloading of resources and bindata. Ref: https://github.com/ooni/probe/issues/1367. * fix: get rid of bindata and use go embed instead * fix: start unbreaking some automatic tests * fix: fetch resources as part of the mobile build * fix: convert more stuff to go1.16 I still expect many breakages, but we'll fix them. * fix: make the windows CI green * fix: get resources before running QA * fix: go1.16 uses modules by default * hopefully fix all other outstanding issues * fix(QA/telegram.py): add another DC IP address * Apply suggestions from code review
This commit is contained in:
parent
c33af04e29
commit
322394fe63
51 changed files with 439 additions and 778 deletions
22
Readme.md
22
Readme.md
|
|
@ -23,8 +23,16 @@ Every top-level directory contains an explanatory README file.
|
|||
|
||||
## Development setup
|
||||
|
||||
Be sure you have golang >= 1.14 and a C compiler (when developing for Windows, you
|
||||
need Mingw-w64 installed). The most basic build command is:
|
||||
Be sure you have golang >= 1.16 and a C compiler (when developing for Windows, you
|
||||
need Mingw-w64 installed).
|
||||
|
||||
You need to download assets first using:
|
||||
|
||||
```bash
|
||||
go run ./internal/cmd/getresources
|
||||
```
|
||||
|
||||
Then you can build using:
|
||||
|
||||
```bash
|
||||
go build -v ./cmd/ooniprobe
|
||||
|
|
@ -32,16 +40,6 @@ go build -v ./cmd/ooniprobe
|
|||
|
||||
This will generate a binary called `ooniprobe` in the current directory.
|
||||
|
||||
## Update bundled assets
|
||||
|
||||
To update bundled assets use:
|
||||
|
||||
```bash
|
||||
./updatebindata.sh
|
||||
```
|
||||
|
||||
Then commit the changes.
|
||||
|
||||
## Android bindings
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue