From 6775191f09a819378b92a0e6abf890b2d9d1950b Mon Sep 17 00:00:00 2001 From: pyranota <92104930+pyranota@users.noreply.github.com> Date: Tue, 9 Sep 2025 16:19:54 +0200 Subject: [PATCH] fix(go): fix go client (#6561) * add jq to flake Signed-off-by: pyranota * make build.sh compatible with non-FHS complient systems Signed-off-by: pyranota * fix client Signed-off-by: pyranota --------- Signed-off-by: pyranota --- flake.nix | 1 + go-client/build.sh | 2 +- go-client/windmill.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3afbd04083..5daca23d31 100644 --- a/flake.nix +++ b/flake.nix @@ -124,6 +124,7 @@ sqlx-cli sccache nsjail + jq # Python flock diff --git a/go-client/build.sh b/go-client/build.sh index 6cce7fee31..b196b5af28 100755 --- a/go-client/build.sh +++ b/go-client/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e mkdir openapi diff --git a/go-client/windmill.go b/go-client/windmill.go index f8d46bf1d5..d64128a91a 100644 --- a/go-client/windmill.go +++ b/go-client/windmill.go @@ -43,7 +43,7 @@ func GetVariable(path string) (string, error) { if err != nil { return "", err } - res, err := client.Client.GetVariableValueWithResponse(context.Background(), client.Workspace, path) + res, err := client.Client.GetVariableValueWithResponse(context.Background(), client.Workspace, path, &api.GetVariableValueParams{}) if err != nil { return "", err }