thanos: pin to Go 1.19

It panics when running with Go 1.20 with the following error:

```
panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc
to declare that it assumes a non-moving garbage collector,
but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated
to assert that it's safe against the go1.20 runtime.
If you want to risk it, run with environment variable
ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.20 set.
Notably, if go1.20 adds a moving garbage collector,
this program is unsafe to use.
```
This commit is contained in:
Pascal Bach 2023-05-13 09:58:44 +02:00
parent 05fada3446
commit 3757137462
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ buildGoModule rec {
vendorHash = "sha256-bNQwDttJ7YuQFrpp0alqe37/lue0CX5gB2UDRWWtTXQ=";
doCheck = false;
doCheck = true;
subPackages = "cmd/thanos";

View File

@ -26096,7 +26096,11 @@ with pkgs;
tailspin = callPackage ../tools/misc/tailspin { };
thanos = callPackage ../servers/monitoring/thanos { };
thanos = callPackage ../servers/monitoring/thanos {
# Fails to run with go1.20 due to go4.org/unsafe/assume-no-moving-gc not being
# update to be compatible with Go 1.20
buildGoModule = buildGo119Module;
};
trafficserver = callPackage ../servers/http/trafficserver { };