ooni-probe-cli/internal/engine
Simone Basso 31e478b04e
refactor: redesign how we import assets (#260)
* fix(pkg.go.dev): import a subpackage containing the assets

We're trying to fix this issue that pkg.go.dev does not build.

Thanks to @hellais for this very neat idea! Let's keep our
fingers crossed and see whether it fixes!

* feat: use embedded geoip databases

Closes https://github.com/ooni/probe/issues/1372.

Work done as part of https://github.com/ooni/probe/issues/1369.

* fix(assetsx): add tests

* feat: simplify and just vendor uncompressed DBs

* remove tests that seems not necessary anymore

* fix: run go mod tidy

* Address https://github.com/ooni/probe-cli/pull/260/files#r605181364

* rewrite a test in a better way

* fix: gently cleanup the legacy assetsdir

Do not remove the whole directory with brute force. Just zap the
files whose name we know. Then attempt to delete the legacy directory
as well. If not empty, just fail. This is fine because it means the
user has stored other files inside the directory.

* fix: create .miniooni if missing
2021-04-01 16:57:31 +02:00
..
atomicx chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experiment refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
geolocate refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
httpheader Release 3.6.0 (#239) 2021-03-03 14:42:17 +01:00
httpx refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
humanizex refactor: miniooni should be outside of the engine (#206) 2021-02-03 11:21:10 +01:00
internal refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
kvstore refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
legacy refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
model refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
netx refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
ooapi feat(ooapi): add toplevel client and simplify API (#248) 2021-03-19 09:30:42 +01:00
probeservices fix: apply staticcheck suggestions (#262) 2021-03-24 12:35:53 +01:00
runtimex refactor: start building an Android package (#205) 2021-02-03 10:51:14 +01:00
shellx fix: use golang.org/x/sys/execabs (#224) 2021-02-10 07:40:48 +01:00
testdata fix: add missing files causing tests to fail (#202) 2021-02-02 14:18:22 +01:00
.gitignore refactor: move more commands to internal/cmd (#207) 2021-02-03 12:23:15 +01:00
allexperiments.go refactor(inputloader): better docs and naming (#265) 2021-03-26 09:34:27 +01:00
experiment_integration_test.go refactor(inputloader): better docs and naming (#265) 2021-03-26 09:34:27 +01:00
experiment_internal_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experiment_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experiment.go refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
experimentbuilder_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
experimentbuilder.go refactor(inputloader): better docs and naming (#265) 2021-03-26 09:34:27 +01:00
inputloader_network_test.go refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
inputloader_test.go refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
inputloader.go release 3.9.0 process: reduce warnings (#279) 2021-03-31 15:59:19 +02:00
inputprocessor_test.go fix(miniooni): replace --limit with --max-runtime (#272) 2021-03-29 20:38:23 +02:00
inputprocessor.go fix(miniooni): replace --limit with --max-runtime (#272) 2021-03-29 20:38:23 +02:00
kvstore_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
kvstore.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
saver_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
saver.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
session_integration_test.go refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
session_internal_test.go refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
session.go refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
submitter_test.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00
submitter.go chore: merge probe-engine into probe-cli (#201) 2021-02-02 12:05:47 +01:00