terraform_0_14: init at 0.14.0 (#105746)

https://github.com/hashicorp/terraform/releases/tag/v0.14.0
This commit is contained in:
Mario Rodas 2020-12-03 08:03:03 -05:00 committed by GitHub
parent 6cffa3e37c
commit 209bdc8ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 9 deletions

View File

@ -1,15 +1,13 @@
{ stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper, coreutils { stdenv, lib, buildGoModule, fetchFromGitHub, makeWrapper, coreutils
, runCommand, runtimeShell, writeText, terraform-providers, fetchpatch }: , runCommand, runtimeShell, writeText, terraform-providers, fetchpatch }:
let let
goPackagePath = "github.com/hashicorp/terraform"; generic = { version, sha256, vendorSha256 ? null, ... }@attrs:
let attrs' = builtins.removeAttrs attrs [ "version" "sha256" "vendorSha256" ];
generic = { version, sha256, ... }@attrs: in buildGoModule ({
let attrs' = builtins.removeAttrs attrs [ "version" "sha256" ];
in buildGoPackage ({
name = "terraform-${version}"; name = "terraform-${version}";
inherit goPackagePath; inherit vendorSha256;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
@ -18,7 +16,7 @@ let
inherit sha256; inherit sha256;
}; };
postPatch = '' postConfigure = ''
# speakeasy hardcodes /bin/stty https://github.com/bgentry/speakeasy/issues/22 # speakeasy hardcodes /bin/stty https://github.com/bgentry/speakeasy/issues/22
substituteInPlace vendor/github.com/bgentry/speakeasy/speakeasy_unix.go \ substituteInPlace vendor/github.com/bgentry/speakeasy/speakeasy_unix.go \
--replace "/bin/stty" "${coreutils}/bin/stty" --replace "/bin/stty" "${coreutils}/bin/stty"
@ -34,9 +32,12 @@ let
''; '';
preCheck = '' preCheck = ''
export HOME=$TMP export HOME=$TMPDIR
export TF_SKIP_REMOTE_TESTS=1
''; '';
subPackages = [ "." ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = description =
"Tool for building, changing, and versioning infrastructure"; "Tool for building, changing, and versioning infrastructure";
@ -163,6 +164,14 @@ in rec {
passthru = { inherit plugins; }; passthru = { inherit plugins; };
}); });
terraform_0_14 = pluggable (generic {
version = "0.14.0";
sha256 = "0pbglnvb6cx8zrz791lfa67dmjqfsyysbxm2083b1lhlmbybi9ax";
vendorSha256 = "1gxhdj98np482jm76aj6zbbmkn7vfk8b878hzz59iywgbdr1r4m1";
patches = [ ./provider-path.patch ];
passthru = { inherit plugins; };
});
# Tests that the plugins are being used. Terraform looks at the specific # Tests that the plugins are being used. Terraform looks at the specific
# file pattern and if the plugin is not found it will try to download it # file pattern and if the plugin is not found it will try to download it
# from the Internet. With sandboxing enable this test will fail if that is # from the Internet. With sandboxing enable this test will fail if that is

View File

@ -28139,6 +28139,7 @@ in
terraform_0_11-full terraform_0_11-full
terraform_0_12 terraform_0_12
terraform_0_13 terraform_0_13
terraform_0_14
terraform_plugins_test terraform_plugins_test
; ;