Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package terragrunt for openSUSE:Factory checked in at 2023-04-18 15:53:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/terragrunt (Old) and /work/SRC/openSUSE:Factory/.terragrunt.new.2023 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "terragrunt" Tue Apr 18 15:53:16 2023 rev:37 rq:1080065 version:0.45.3 Changes: -------- --- /work/SRC/openSUSE:Factory/terragrunt/terragrunt.changes 2023-04-06 15:56:18.836421916 +0200 +++ /work/SRC/openSUSE:Factory/.terragrunt.new.2023/terragrunt.changes 2023-04-18 15:53:20.257573838 +0200 @@ -1,0 +2,6 @@ +Tue Apr 18 04:55:31 UTC 2023 - ka...@b1-systems.de + +- Update to version 0.45.3: + * #2512 Improve reporting errors on modules (#2527) + +------------------------------------------------------------------- Old: ---- terragrunt-0.45.2.obscpio New: ---- terragrunt-0.45.3.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ terragrunt.spec ++++++ --- /var/tmp/diff_new_pack.AyyRDg/_old 2023-04-18 15:53:21.717582246 +0200 +++ /var/tmp/diff_new_pack.AyyRDg/_new 2023-04-18 15:53:21.721582270 +0200 @@ -19,7 +19,7 @@ %define __arch_install_post export NO_BRP_STRIP_DEBUG=true Name: terragrunt -Version: 0.45.2 +Version: 0.45.3 Release: 0 Summary: Thin wrapper for Terraform for working with multiple Terraform modules License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.AyyRDg/_old 2023-04-18 15:53:21.753582454 +0200 +++ /var/tmp/diff_new_pack.AyyRDg/_new 2023-04-18 15:53:21.757582478 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/gruntwork-io/terragrunt</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.45.2</param> + <param name="revision">v0.45.3</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.AyyRDg/_old 2023-04-18 15:53:21.777582593 +0200 +++ /var/tmp/diff_new_pack.AyyRDg/_new 2023-04-18 15:53:21.781582615 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/gruntwork-io/terragrunt</param> - <param name="changesrevision">cff4cbae12e6ba4018a01f167831b9fc35ababbb</param></service></servicedata> + <param name="changesrevision">d844de5319560d80cffcc80a53ac9249ef65ad4e</param></service></servicedata> (No newline at EOF) ++++++ terragrunt-0.45.2.obscpio -> terragrunt-0.45.3.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.45.2/cli/args.go new/terragrunt-0.45.3/cli/args.go --- old/terragrunt-0.45.2/cli/args.go 2023-04-05 20:59:02.000000000 +0200 +++ new/terragrunt-0.45.3/cli/args.go 2023-04-17 21:20:30.000000000 +0200 @@ -159,6 +159,7 @@ includeModulePrefix := parseBooleanArg(args, optTerragruntIncludeModulePrefix, os.Getenv("TERRAGRUNT_INCLUDE_MODULE_PREFIX") == "true" || os.Getenv("TERRAGRUNT_INCLUDE_MODULE_PREFIX") == "1") if includeModulePrefix { opts.IncludeModulePrefix = true + opts.OutputPrefix = fmt.Sprintf("[%s] ", opts.WorkingDir) } opts.RunAllAutoApprove = !parseBooleanArg(args, optTerragruntNoAutoApprove, os.Getenv("TERRAGRUNT_AUTO_APPROVE") == "false") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.45.2/test/fixture-init-error/main.tf new/terragrunt-0.45.3/test/fixture-init-error/main.tf --- old/terragrunt-0.45.2/test/fixture-init-error/main.tf 1970-01-01 01:00:00.000000000 +0100 +++ new/terragrunt-0.45.3/test/fixture-init-error/main.tf 2023-04-17 21:20:30.000000000 +0200 @@ -0,0 +1,7 @@ +terraform { + backend "s3" { + bucket = "mybucket" + key = "path/to/my/key" + region = "us-east-1" + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.45.2/test/integration_test.go new/terragrunt-0.45.3/test/integration_test.go --- old/terragrunt-0.45.2/test/integration_test.go 2023-04-05 20:59:02.000000000 +0200 +++ new/terragrunt-0.45.3/test/integration_test.go 2023-04-17 21:20:30.000000000 +0200 @@ -140,6 +140,7 @@ TEST_FIXTURE_TFLINT_MODULE_FOUND = "fixture-tflint/module-found" TEST_FIXTURE_TFLINT_NO_TF_SOURCE_PATH = "fixture-tflint/no-tf-source" TEST_FIXTURE_PARALLEL_RUN = "fixture-parallel-run" + TEST_FIXTURE_INIT_ERROR = "fixture-init-error" TERRAFORM_BINARY = "terraform" TERRAFORM_FOLDER = ".terraform" TERRAFORM_STATE = "terraform.tfstate" @@ -5249,6 +5250,23 @@ runTerragrunt(t, fmt.Sprintf("terragrunt run-all validate --terragrunt-include-module-prefix --terragrunt-non-interactive --terragrunt-working-dir %s", rootPath)) } +func TestInitFailureModulePrefix(t *testing.T) { + t.Parallel() + + initTestCase := TEST_FIXTURE_INIT_ERROR + cleanupTerraformFolder(t, initTestCase) + cleanupTerragruntFolder(t, initTestCase) + + stdout := bytes.Buffer{} + stderr := bytes.Buffer{} + require.Error( + t, + runTerragruntCommand(t, fmt.Sprintf("terragrunt init -no-color --terragrunt-include-module-prefix --terragrunt-non-interactive --terragrunt-working-dir %s", initTestCase), &stdout, &stderr), + ) + logBufferContentsLineByLine(t, stderr, "init") + assert.Contains(t, stderr.String(), "[fixture-init-error] Error") +} + func TestDependencyOutputModulePrefix(t *testing.T) { t.Parallel() @@ -5256,7 +5274,7 @@ tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_GET_OUTPUT) rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_GET_OUTPUT, "integration") - runTerragrunt(t, fmt.Sprintf("terragrunt apply-all --terragrunt-include-module-prefix --terragrunt-non-interactive --terragrunt-working-dir %s", rootPath)) + runTerragrunt(t, fmt.Sprintf("terragrunt apply-all --terragrunt-include-module-prefix --terragrunt-non-interactive --terragrunt-working-dir %s", rootPath)) // verify expected output 42 stdout := bytes.Buffer{} @@ -5265,12 +5283,9 @@ app3Path := util.JoinPath(rootPath, "app3") require.NoError( t, - runTerragruntCommand(t, fmt.Sprintf("terragrunt output -no-color -json --terragrunt-include-module-prefix --terragrunt-non-interactive --terragrunt-working-dir %s", app3Path), &stdout, &stderr), + runTerragruntCommand(t, fmt.Sprintf("terragrunt output -no-color -json --terragrunt-include-module-prefix --terragrunt-non-interactive --terragrunt-working-dir %s", app3Path), &stdout, &stderr), ) - - outputs := map[string]TerraformOutput{} - require.NoError(t, json.Unmarshal([]byte(stdout.String()), &outputs)) - assert.Equal(t, int(outputs["z"].Value.(float64)), 42) + assert.Contains(t, stdout.String(), "\"value\": 42") } func validateBoolOutput(t *testing.T, outputs map[string]TerraformOutput, key string, value bool) { ++++++ terragrunt.obsinfo ++++++ --- /var/tmp/diff_new_pack.AyyRDg/_old 2023-04-18 15:53:22.385586093 +0200 +++ /var/tmp/diff_new_pack.AyyRDg/_new 2023-04-18 15:53:22.389586117 +0200 @@ -1,5 +1,5 @@ name: terragrunt -version: 0.45.2 -mtime: 1680721142 -commit: cff4cbae12e6ba4018a01f167831b9fc35ababbb +version: 0.45.3 +mtime: 1681759230 +commit: d844de5319560d80cffcc80a53ac9249ef65ad4e ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/terragrunt/vendor.tar.gz /work/SRC/openSUSE:Factory/.terragrunt.new.2023/vendor.tar.gz differ: char 5, line 1