Grafana build issue "go.work requires go >= 1.24.4 (running go 1.24.3..."

Hi, I’ve had issues updating Grafana on my VPS, on aarch64-linux.

This is the error:

error: builder for '/nix/store/iag2knr35vhw160jpfzh5nxwfcpzafj0-grafana-12.0.2.drv' failed with exit code 1;
last 9 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/qincqp9238rcgn5qji03a693ii5ig1fj-source
> source root is source
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> wire: err: exit status 1: stderr: go: go.work requires go >= 1.24.4 (running go 1.24.3; GOTOOLCHAIN=local)
>
> wire: generate failed
For full logs, run:
     nix log /nix/store/iag2knr35vhw160jpfzh5nxwfcpzafj0-grafana-12.0.2.drv

The error log isn’t really helpful sadly:

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/qincqp9238rcgn5qji03a693ii5ig1fj-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
wire: err: exit status 1: stderr: go: go.work requires go >= 1.24.4 (running go 1.24.3; GOTOOLCHAIN=local)
        
wire: generate failed

I haven’t found anything on Github, and obviously the hydra build doesn’t fail, so honestly idk what I’m doing wrong specifically.
I’m on 25.05. and on Github the Go Version is patched to 1.24.4, so I don’t know why the build is using 1.24.3

This is the config:

{ config, pkgs, helpers, systemSettings, userSettings, ... }:

let
    url = systemSettings.extraSettings.privateUrl;
    port = 2345;
in
{
    services.grafana = {
        enable = true;
        settings = {
            server = {
                http_addr = "127.0.0.1";
                http_port = port; # default: 3000
                enable_gzip = true;
            };
            security.admin_email = systemSettings.extraSettings.email;
            analytics.reporting_enabled = false;
        };

        provision = {
            dashboards.settings.providers = [
                { name = "Overview"; options.path = ./dashboards/node.json; }
            ];

            datasources.settings = {
                ...
            };

            datasources.settings.deleteDatasources = let
                delete = name: { orgId = 1; name = name; };
            in [
                (delete "VictoriaMetrics - Prometheus")
            ];
        };

        declarativePlugins = with pkgs.grafanaPlugins; [
            victoriametrics-metrics-datasource
            victoriametrics-logs-datasource
        ];
    };
    ...
}

I don’t think theres any other Go instance installed, at least there’s nothing in the global path and I don’t add the package anywhere explicitly.

1 Like

Looks like it’s now fixed.

1 Like

Yup, it’s fixed, thanks for the hint.

I’d looked at the Issues two days ago, so I hadn’t seen the Issue, my apologies.