Commit 37571374 authored by Pascal Bach's avatar Pascal Bach
Browse files

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.
```
parent 05fada34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ buildGoModule rec {

  vendorHash = "sha256-bNQwDttJ7YuQFrpp0alqe37/lue0CX5gB2UDRWWtTXQ=";

  doCheck = false;
  doCheck = true;

  subPackages = "cmd/thanos";

+5 −1
Original line number Diff line number Diff line
@@ -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 { };