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-05-22 13:14:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/terragrunt (Old) and /work/SRC/openSUSE:Factory/.terragrunt.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "terragrunt" Mon May 22 13:14:33 2023 rev:47 rq:1088268 version:0.45.15 Changes: -------- --- /work/SRC/openSUSE:Factory/terragrunt/terragrunt.changes 2023-05-19 11:56:23.779563398 +0200 +++ /work/SRC/openSUSE:Factory/.terragrunt.new.1533/terragrunt.changes 2023-05-22 13:14:36.750893307 +0200 @@ -1,0 +2,6 @@ +Mon May 22 05:45:49 UTC 2023 - ka...@b1-systems.de + +- Update to version 0.45.15: + * Simplified source code locking/unlocking (#2576) + +------------------------------------------------------------------- Old: ---- terragrunt-0.45.14.obscpio New: ---- terragrunt-0.45.15.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ terragrunt.spec ++++++ --- /var/tmp/diff_new_pack.xx0J47/_old 2023-05-22 13:14:38.882903947 +0200 +++ /var/tmp/diff_new_pack.xx0J47/_new 2023-05-22 13:14:38.890903988 +0200 @@ -19,7 +19,7 @@ %define __arch_install_post export NO_BRP_STRIP_DEBUG=true Name: terragrunt -Version: 0.45.14 +Version: 0.45.15 Release: 0 Summary: Thin wrapper for Terraform for working with multiple Terraform modules License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.xx0J47/_old 2023-05-22 13:14:38.930904187 +0200 +++ /var/tmp/diff_new_pack.xx0J47/_new 2023-05-22 13:14:38.930904187 +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.14</param> + <param name="revision">v0.45.15</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.xx0J47/_old 2023-05-22 13:14:38.954904306 +0200 +++ /var/tmp/diff_new_pack.xx0J47/_new 2023-05-22 13:14:38.958904326 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/gruntwork-io/terragrunt</param> - <param name="changesrevision">2f4ca34f74fe25ba7df16127b076fabb62499d79</param></service></servicedata> + <param name="changesrevision">a9df21fae6041de444a3a66154f7ccda97548ba4</param></service></servicedata> (No newline at EOF) ++++++ terragrunt-0.45.14.obscpio -> terragrunt-0.45.15.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.45.14/cli/cli_app.go new/terragrunt-0.45.15/cli/cli_app.go --- old/terragrunt-0.45.14/cli/cli_app.go 2023-05-18 19:00:44.000000000 +0200 +++ new/terragrunt-0.45.15/cli/cli_app.go 2023-05-19 23:34:42.000000000 +0200 @@ -763,18 +763,11 @@ workingDir = *curHook.WorkingDir } - rawActualLock, _ := sourceChangeLocks.LoadOrStore(workingDir, &sync.Mutex{}) - actualLock := rawActualLock.(*sync.Mutex) - actualLock.Lock() - defer actualLock.Unlock() - actionToExecute := curHook.Execute[0] actionParams := curHook.Execute[1:] if actionToExecute == "tflint" { - err := tflint.RunTflintWithOpts(terragruntOptions, terragruntConfig) - if err != nil { - terragruntOptions.Logger.Errorf("Error running hook %s with message: %s", curHook.Name, err.Error()) + if err := executeTFLint(terragruntOptions, terragruntConfig, curHook, workingDir); err != nil { return err } } else { @@ -792,6 +785,20 @@ } return nil } + +func executeTFLint(terragruntOptions *options.TerragruntOptions, terragruntConfig *config.TerragruntConfig, curHook config.Hook, workingDir string) error { + // fetching source code changes lock since tflint is not thread safe + rawActualLock, _ := sourceChangeLocks.LoadOrStore(workingDir, &sync.Mutex{}) + actualLock := rawActualLock.(*sync.Mutex) + actualLock.Lock() + defer actualLock.Unlock() + err := tflint.RunTflintWithOpts(terragruntOptions, terragruntConfig) + if err != nil { + terragruntOptions.Logger.Errorf("Error running hook %s with message: %s", curHook.Name, err.Error()) + return err + } + return nil +} // Runs terraform with the given options and CLI args. // This will forward all the args and extra_arguments directly to Terraform. ++++++ terragrunt.obsinfo ++++++ --- /var/tmp/diff_new_pack.xx0J47/_old 2023-05-22 13:14:39.746908259 +0200 +++ /var/tmp/diff_new_pack.xx0J47/_new 2023-05-22 13:14:39.746908259 +0200 @@ -1,5 +1,5 @@ name: terragrunt -version: 0.45.14 -mtime: 1684429244 -commit: 2f4ca34f74fe25ba7df16127b076fabb62499d79 +version: 0.45.15 +mtime: 1684532082 +commit: a9df21fae6041de444a3a66154f7ccda97548ba4 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/terragrunt/vendor.tar.gz /work/SRC/openSUSE:Factory/.terragrunt.new.1533/vendor.tar.gz differ: char 5, line 1