Date: Tuesday, March 24, 2020 @ 14:11:02
  Author: shibumi
Revision: 603857

upgpkg: terraform 0.12.23-1 add patch for backporting tests

Added:
  terraform/trunk/test-backport.patch
Modified:
  terraform/trunk/CHANGELOG.md
  terraform/trunk/PKGBUILD

---------------------+
 CHANGELOG.md        |   10 ++++++++++
 PKGBUILD            |   17 ++++++++++++-----
 test-backport.patch |   32 ++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+), 5 deletions(-)

Modified: CHANGELOG.md
===================================================================
--- CHANGELOG.md        2020-03-24 14:08:43 UTC (rev 603856)
+++ CHANGELOG.md        2020-03-24 14:11:02 UTC (rev 603857)
@@ -6,11 +6,21 @@
 #22862 fixed a bug where the `import` command was not properly attaching the 
configured provider for a resource to be imported, making the `-provider` 
command line argument unnecessary. 
 * config: Inside `provisioner` blocks that have `when = destroy` set, and 
inside any `connection` blocks that are used by such `provisioner` blocks, it 
is now an error to refer to any objects other than `self`, `count`, or `each` 
[GH-24083]
 * config: The `merge` function now returns more precise type information, 
making it usable for values passed to `for_each` [GH-24032]
+* The official MacOS builds of Terraform CLI are no longer compatible with Mac 
OS 10.10 Yosemite; Terraform now requires at least Mac OS 10.11 El Capitan. 
Terraform 0.13 is the last major release that will support 10.11 El Capitan, so 
if you are upgrading your OS we recommend upgrading to Mac OS 10.12 Sierra or 
later.
+* The official FreeBSD builds of Terraform CLI are no longer compatible with 
FreeBSD 10.x, which has reached end-of-life. Terraform now requires FreeBSD 
11.2 or later.
 
+ENHANCEMENTS:
+* config: `templatefile` function will now return a helpful error message if a 
given variable has an invalid name, rather than relying on a syntax error in 
the template parsing itself. [GH-24184]
+* config: The configuration language now uses Unicode 12.0 character tables 
for certain Unicode-version-sensitive operations on strings, such as the 
`upper` and `lower` functions. Those working with strings containing new 
characters introduced since Unicode 9.0 may see small differences in behavior 
as a result of these table updates.
+* Terraform CLI now supports TLS 1.3 and supports Ed25519 certificates when 
making outgoing connections to remote TLS servers. While both of these changes 
are backwards compatible in principle, certain legacy TLS server 
implementations can reportedly encounter problems when attempting to negotiate 
TLS 1.3. (These changes affects only requests made by Terraform CLI itself, 
such as to module registries or backends. Provider plugins have separate TLS 
implementations that will gain these features on a separate release schedule.)
+* On Unix systems where `use-vc` is set in `resolv.conf`, Terraform will now 
use TCP for DNS resolution. We don't expect this to cause any problem for most 
users, but if you find you are seeing DNS resolution failures after upgrading 
please verify that you can either reach your configured nameservers using TCP 
or that your resolver configuration does not include the `use-vc` directive.
 
 BUG FIXES: 
+* cli: Fix `terraform state mv` to correctly set the resource each mode based 
on the target address [GH-24254]
 * cli: The `terraform plan` command (and the implied plan run by `terraform 
apply` with no arguments) will now print any warnings that were generated even 
if there are no changes to be made. [GH-24095]
+* command/show (json output): fix inconsistency in resource addresses between 
plan and prior state output [GH-24256]
 * core: Instances are now destroyed only using their stored state, removing 
many cycle errors [GH-24083]
+* lang: Fix non-string key panics in map function [GH-24277]
 
 ---
 For information on prior major releases, see their changelogs:

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-03-24 14:08:43 UTC (rev 603856)
+++ PKGBUILD    2020-03-24 14:11:02 UTC (rev 603857)
@@ -2,7 +2,7 @@
 # Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org>
 
 pkgname=terraform
-pkgver=0.12.21
+pkgver=0.12.23
 pkgrel=1
 pkgdesc="HashiCorp tool for building and updating infrastructure as code 
idempotently"
 url="https://www.terraform.io/";
@@ -10,20 +10,27 @@
 license=("MPL")
 depends=('glibc')
 makedepends=("go-pie")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz";)
-sha512sums=('3b0dd3e6d8ae4b172d0be934ada6a8dcadc3024d0f27450ed107d55cf7f08b6b0b5eeb739a210fc9a76db42f7cc75ad5842ca7415afa3d7b17d9a34f23920a59')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/terraform/archive/v$pkgver.tar.gz";
+        "test-backport.patch")
+sha512sums=('7598b45a76e0684594067921bc9cd5da954c4590f612dcaf29e77c40c372f15f690732896f90272666ec587a3cb2e07dc556e29e9d029fd019528ae3e3cb0abb'
+            
'5c7468f47c19867598bafe07322d1c5a7314286eabab6012aa70a55967967467e620f5a56aeecadf6ebd13021f2c01a4e54c70c41ee09dfd702a082507b3ae47')
 changelog="CHANGELOG.md"
 
+prepare() {
+       cd "$pkgname-$pkgver"
+  patch -Np1 < "${srcdir}/test-backport.patch"
+}
+
 build() {
        cd "$pkgname-$pkgver"
        export CGO_LDFLAGS="$LDFLAGS"
-       export GOFLAGS="-trimpath"
+       export GOFLAGS="-trimpath -mod=vendor"
        go build -o terraform-binary
 }
 
 check() {
   cd "${pkgname}-${pkgver}"
-  go test ./...
+  go test -mod=vendor ./...
 }
 
 package() {

Added: test-backport.patch
===================================================================
--- test-backport.patch                         (rev 0)
+++ test-backport.patch 2020-03-24 14:11:02 UTC (rev 603857)
@@ -0,0 +1,32 @@
+From e73ec9437e62f1f75369c847642a52066cfa43da Mon Sep 17 00:00:00 2001
+From: Morten Linderud <mor...@linderud.pw>
+Date: Mon, 23 Mar 2020 21:30:36 +0100
+Subject: [PATCH] Test patch backport
+
+Signed-off-by: Morten Linderud <mor...@linderud.pw>
+---
+ internal/getproviders/registry_source_test.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/internal/getproviders/registry_source_test.go 
b/internal/getproviders/registry_source_test.go
+index 0d5efab4880..3d0583b1aa7 100644
+--- a/internal/getproviders/registry_source_test.go
++++ b/internal/getproviders/registry_source_test.go
+@@ -52,7 +52,7 @@ func TestSourceAvailableVersions(t *testing.T) {
+               {
+                       "fails.example.com/foo/bar",
+                       nil,
+-                      `could not query provider registry for 
fails.example.com/foo/bar: Get ` + baseURL + 
`/fails-immediately/foo/bar/versions: EOF`,
++                      `could not query provider registry for 
fails.example.com/foo/bar: Get "` + baseURL + 
`/fails-immediately/foo/bar/versions": EOF`,
+               },
+       }
+ 
+@@ -151,7 +151,7 @@ func TestSourcePackageMeta(t *testing.T) {
+                       "1.2.0",
+                       "linux", "amd64",
+                       PackageMeta{},
+-                      `could not query provider registry for 
fails.example.com/awesomesauce/happycloud: Get 
http://placeholder-origin/fails-immediately/awesomesauce/happycloud/1.2.0/download/linux/amd64:
 EOF`,
++                      `could not query provider registry for 
fails.example.com/awesomesauce/happycloud: Get 
"http://placeholder-origin/fails-immediately/awesomesauce/happycloud/1.2.0/download/linux/amd64":
 EOF`,
+               },
+       }
+ 

Reply via email to