We want users using Debian stable to be able to build. To this end we need two things to happen:
[x] ./internal/cmd/buildtool must compile and run with go1.18+ (Debian stable uses go1.19);
[x] ./internal/cmd/buildtool has a gofixpath subcommand that downloads the correct go version if needed and then ensures that this version is the "go" we find in PATH (if needed);
[x] ./script/go.bash is such that we use gofixpath to invoke commands with the right "go" in PATH;
We want users using Debian stable to be able to build. To this end we need two things to happen:
./internal/cmd/buildtool
must compile and run with go1.18+ (Debian stable uses go1.19);./internal/cmd/buildtool
has agofixpath
subcommand that downloads the correct go version if needed and then ensures that this version is the "go" we find inPATH
(if needed);./script/go.bash
is such that we usegofixpath
to invoke commands with the right "go" inPATH
;.Makefile
must use./script/go.bash
.If we do this, we simplify @aanorbel's life in https://github.com/ooni/probe-android/pull/650.
In turn, by doing this, we enable better cross-integration tests across repositories.