terraform-providers: switch to go_1_18

This commit is contained in:
zowoq 2022-07-12 11:47:18 +10:00
parent 92b7ba081f
commit 77b2ff803d
2 changed files with 19 additions and 8 deletions

View file

@ -1,7 +1,7 @@
{ lib
, stdenv
, buildGoModule
, buildGo118Module
, buildGo117Module
, fetchFromGitHub
, callPackage
, config
@ -59,13 +59,22 @@ let
# These are the providers that don't fall in line with the default model
special-providers =
{
brightbox = automated-providers.brightbox.override { mkProviderGoModule = buildGo118Module; };
hcloud = automated-providers.hcloud.override { mkProviderGoModule = buildGo118Module; };
# mkisofs needed to create ISOs holding cloud-init data,
# and wrapped to terraform via deecb4c1aab780047d79978c636eeb879dd68630
# go-module vendor fails with 1.18
buildkite = automated-providers.buildkite.override { mkProviderGoModule = buildGo117Module; };
# go-module vendor fails with 1.18
checkly = automated-providers.checkly.override { mkProviderGoModule = buildGo117Module; };
# mkisofs needed to create ISOs holding cloud-init data and wrapped to terraform via deecb4c1aab780047d79978c636eeb879dd68630
libvirt = automated-providers.libvirt.overrideAttrs (_: { propagatedBuildInputs = [ cdrtools ]; });
linode = automated-providers.linode.override { mkProviderGoModule = buildGo118Module; };
utils = automated-providers.utils.override { mkProviderGoModule = buildGo118Module; };
# fails to build on x86_64-darwin with 1.18
lxd = automated-providers.lxd.override { mkProviderGoModule = buildGo117Module; };
# fails to build on x86_64-darwin with 1.18
netlify = automated-providers.netlify.override { mkProviderGoModule = buildGo117Module; };
# fails to build on x86_64-darwin with 1.18
pass = automated-providers.pass.override { mkProviderGoModule = buildGo117Module; };
# fails to build on x86_64-darwin with 1.18
skytap = automated-providers.skytap.override { mkProviderGoModule = buildGo117Module; };
# fails to build on x86_64-{darwin,linux} with 1.18
tencentcloud = automated-providers.tencentcloud.override { mkProviderGoModule = buildGo117Module; };
};
# Put all the providers we not longer support in this list.

View file

@ -35224,7 +35224,9 @@ with pkgs;
terraform-full = terraform.full;
terraform-providers = recurseIntoAttrs (
callPackage ../applications/networking/cluster/terraform-providers { }
callPackage ../applications/networking/cluster/terraform-providers {
buildGoModule = buildGo118Module;
}
);
terraforming = callPackage ../applications/networking/cluster/terraforming { };