-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: latest upper.io/db and pin probe-engine #116
Conversation
We're specifically pinning a commit of probe-engine that is using MK v0.10.11, so that we address the following issues: 1. we use db-ip.com for the country database as opposed to using the increasingly stale MaxMind database (see ooni/probe-engine#334) 2. we're using an implementation of WhatsApp that does not suffer from the super-old CIDR bug (see ooni/probe-engine#341) 3. we're not linking to libcurl anymore on Windows and Linux, thanks to this new version of MK where we can optionally disable libcurl; we are still linking to libcurl on macOS, but that has no impact on the binary size since on macOS libcurl is part of the system This should be enough, from my side to bless a new release of the probe-cli (see ooni/probe#1028).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have explained the PR below:
@@ -1,2 +1,4 @@ | |||
/dist | |||
/ooniprobe | |||
/ooniprobe.exe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Send less useless context to Docker daemon
@@ -1,2 +1,2 @@ | |||
FROM openobservatory/mk-alpine:latest | |||
FROM openobservatory/mk-alpine:20200226 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproducible builds
@@ -22,7 +22,7 @@ fi | |||
if [ "$1" = "windows" ]; then | |||
set -x | |||
CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \ | |||
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 \ | |||
CGO_LDFLAGS_ALLOW='-fstack-.*' CGO_ENABLED=1 GOOS=windows GOARCH=amd64 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, sadly, we need to white list this flag to correctly link on Windows
@@ -48,7 +48,7 @@ elif [ "$1" = "release" ]; then | |||
-C ./dist/macos/amd64 ooniprobe | |||
shasum -a 256 ooniprobe_${v}_darwin_amd64.tar.gz >> ooniprobe_checksums.txt | |||
$0 windows | |||
tar -czf ooniprobe_${v}_windows_amd64.tar.gz ./dist/windows/amd64 \ | |||
tar -czf ooniprobe_${v}_windows_amd64.tar.gz LICENSE.md Readme.md \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While there, fix the distribution generation on Windows, which was broken
We're specifically pinning a commit of probe-engine that is using MK v0.10.11, so that we address the following issues: 1. we use db-ip.com for the country database as opposed to using the increasingly stale MaxMind database (see ooni/probe-engine#334) 2. we're using an implementation of WhatsApp that does not suffer from the super-old CIDR bug (see ooni/probe-engine#341) 3. we're not linking to libcurl anymore on Windows and Linux, thanks to this new version of MK where we can optionally disable libcurl; we are still linking to libcurl on macOS, but that has no impact on the binary size since on macOS libcurl is part of the system This should be enough, from my side to bless a new release of the probe-cli (see ooni/probe#1028).
We're specifically pinning a commit of probe-engine that is using
MK v0.10.11, so that we address the following issues:
we use db-ip.com for the country database as opposed to using
the increasingly stale MaxMind database (see probe-assets: use db-ip.com IP for country DB probe-engine#334)
we're using an implementation of WhatsApp that does not suffer
from the super-old CIDR bug (see WhatsApp false positives due to obsolete CIDR probe-engine#341)
we're not linking to libcurl anymore on Windows and Linux, thanks to
this new version of MK where we can optionally disable libcurl; we are
still linking to libcurl on macOS, but that has no impact on the binary
size since on macOS libcurl is part of the system
This should be enough, from my side to bless a new release of the
probe-cli (see ooni/probe#1028).