about summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2023-05-13 09:58:44 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2023-05-13 10:04:51 +0200
commit3757137462eadc03273cdab012c1e2965c91af9d (patch)
tree9e6a845e849cb2b094a08c779972e7a84fa00605 /pkgs/top-level
parent05fada344644792fd1035511e0827f935112a780 (diff)
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.
```
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/all-packages.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c57fe2eef51a7..1b3046329c640 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -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 { };