chore: support go1.18 and update dependencies (#708)
Here's the squash of the following patches that enable support
for go1.18 and update our dependencies.
This diff WILL need to be backported to the release/3.14 branch.
* chore: use go1.17.8
See https://github.com/ooni/probe/issues/2067
* chore: upgrade to probe-assets@v0.8.0
See https://github.com/ooni/probe/issues/2067.
* chore: update dependencies and enable go1.18
As mentioned in 7a0d17ea91,
the tree won't build with `go1.18` unless we say it does.
So, not only here we need to update dependencies but also we
need to explicitly say `go1.18` in the `go.mod`.
This work is part of https://github.com/ooni/probe/issues/2067.
* chore(coverage.yml): run with go1.18
This change will give us a bare minimum confidence that we're
going to build our tree using version 1.18 of golang.
See https://github.com/ooni/probe/issues/2067.
* chore: update user agent used for measuring
See https://github.com/ooni/probe/issues/2067
* chore: run `go generate ./...`
See https://github.com/ooni/probe/issues/2067
* fix(dialer_test.go): make test work with go1.17 and go1.18
1. the original test wanted the dial to fail, so ensure we're not
passing any domain name to exercise dialing not resolving;
2. match the end of the error rather than the whole error string.
Tested locally with both go1.17 and go1.18.
See https://github.com/ooni/probe-cli/pull/708#issuecomment-1096447186
This commit is contained in:
parent
340cd826ff
commit
306d18e466
50 changed files with 853 additions and 507 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:26.896771 +0100 CET m=+0.000398918
|
||||
// 2022-04-12 11:15:59.822397 +0200 CEST m=+0.000295376
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:27.237936 +0100 CET m=+0.000174168
|
||||
// 2022-04-12 11:16:00.104504 +0200 CEST m=+0.000167126
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:27.560368 +0100 CET m=+0.000182001
|
||||
// 2022-04-12 11:16:00.345318 +0200 CEST m=+0.000199501
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:27.849409 +0100 CET m=+0.000184501
|
||||
// 2022-04-12 11:16:00.581209 +0200 CEST m=+0.000165542
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:28.132882 +0100 CET m=+0.000173793
|
||||
// 2022-04-12 11:16:00.801039 +0200 CEST m=+0.000156667
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:28.435284 +0100 CET m=+0.000182959
|
||||
// 2022-04-12 11:16:01.028122 +0200 CEST m=+0.000154543
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:28.72228 +0100 CET m=+0.000187251
|
||||
// 2022-04-12 11:16:01.247582 +0200 CEST m=+0.000156834
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:29.022894 +0100 CET m=+0.000173293
|
||||
// 2022-04-12 11:16:01.473737 +0200 CEST m=+0.000152834
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:29.286865 +0100 CET m=+0.000161751
|
||||
// 2022-04-12 11:16:01.660847 +0200 CEST m=+0.000161543
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:29.560643 +0100 CET m=+0.000169043
|
||||
// 2022-04-12 11:16:01.843585 +0200 CEST m=+0.000172459
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:29.83907 +0100 CET m=+0.000167126
|
||||
// 2022-04-12 11:16:02.103662 +0200 CEST m=+0.000218834
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:30.166785 +0100 CET m=+0.000172376
|
||||
// 2022-04-12 11:16:02.453796 +0200 CEST m=+0.000316501
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:30.503944 +0100 CET m=+0.000176418
|
||||
// 2022-04-12 11:16:02.826745 +0200 CEST m=+0.000215792
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2022-01-24 12:46:30.895457 +0100 CET m=+0.000520167
|
||||
// 2022-04-12 11:16:03.156728 +0200 CEST m=+0.000510043
|
||||
|
||||
package ooapi
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ const swagger = `{
|
|||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "OONI API specification",
|
||||
"version": "0.20220124.1114630"
|
||||
"version": "0.20220412.4091603"
|
||||
},
|
||||
"host": "api.ooni.io",
|
||||
"basePath": "/",
|
||||
|
|
|
|||
Loading…
Reference in a new issue