From f685df49f88bfaddde29236b69d2ad103e05205b Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 10 Apr 2025 09:18:53 +1000 Subject: [PATCH] terraform: fix vendor breakage postConfigure isn't inherited by the goModules vendor --- pkgs/applications/networking/cluster/terraform/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index ae0e0de7ba56..b5435fb839bb 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -45,7 +45,7 @@ let "-X 'github.com/hashicorp/terraform/version.dev=no'" ]; - postConfigure = '' + postPatch = '' # Between go 1.23 and 1.24 the following GODEBUG setting was removed, and a new # similar one was added. # https://github.com/golang/go/issues/72111 @@ -54,7 +54,8 @@ let # https://tldr.fail/ substituteInPlace go.mod \ --replace-quiet 'godebug tlskyber=0' 'godebug tlsmlkem=0' - + ''; + postConfigure = '' # speakeasy hardcodes /bin/stty https://github.com/bgentry/speakeasy/issues/22 substituteInPlace vendor/github.com/bgentry/speakeasy/speakeasy_unix.go \ --replace-fail "/bin/stty" "${coreutils}/bin/stty"